First, download and install Haxe.
The example project can be compiled to html5, neko, cpp, ios, etc.
It uses the state_handler room from the colyseus-examples project, which you can find here.
git clone https://github.com/colyseus/colyseus-haxe.git
cd colyseus-haxe/example/openfl
haxelib install openfl
haxelib install lime
haxelib install colyseus-websocket
haxelib run lime test project.xml html5
Running the test-suite:
haxe hxml/test.js.hxml
colyseus-haxe depends on colyseus-websocket
MIT