LudiDorici / godot-websocket

A Godot Engine module implementing WebSocket client and server on most platform - INCLUDED IN GODOT. Repository left for historical reference only
MIT License
39 stars 11 forks source link

NOTE: This module was merged in Godot Engine master branch via pull request https://github.com/godotengine/godot/pull/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


WebSocket module for Godot Engine 3.0

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.

NOTE

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:

LWS Module Screenshot

Build instruction

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.

Support us

If you like this, and want to support us, check out our videogame and follow us on twitter