NOTE: This module was merged in Godot Engine master branch via pull request godotengine/godot#14888 and will be available on official Godot Engine releases starting from version 3.1. This repository is no longer mantained and only left for historical purpose. All further development will be done inside the Godot Engine repository ( https://github.com/godotengine/godot ). Thank you for your support.
Demos are available for newer versions of Godot in the official demo repository.
If you like this, and want to support us, check out our videogame and follow us on twitter
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:
- Linux
- Windows (mingw build)
- Javascript/HTML5
Compiles on (untested but should work):
- Android
- iOS
- OSX
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