This module allows for easy creation of WebSocket Client and Server using libwebsockets as a thirdparty library. Libwebsockets is released as LGPLv2.1 + static linkning exception. You can find that license in thirdparty/LICENSE.txt
The client API is also available in project exported to HTML5 using native Javascript code.
A small demo project is available in websocket_chat_demo
to show how to use the module.
This module is still a work in progress.
Tested on:
Compiles on (untested but should work):
The module supports writing data in both TEXT and BINARY mode.
You can run the demo server from a godot instance and connect to it with the demo client exported to Javascipt/HTML5, checkout the screenshot:
Simply copy (or link) modules/lws
inside Godot modules
directory. Also copy thirdparty/lws
inside Godot thirdparty
directory.
Compile Godot Engine as you would normally do.
If you like this, and want to support us, check out our videogame and follow us on twitter