A (work in progress) Haxe implementation of the socket.io protocol.
haxelib git haxe-socketio https://github.com/snwhd/haxe-socketio.git
# TODO: haxelib install haxe-socketio
class Main {
public static function main() {
var sio = new Server();
// handle a specific event
sio.on("test_event", function (sid, data) {
trace('Test Event From $sid');
});
// catch all for events without a handler
sio.onCatchAll(function (event, sid, data) {
trace('$event: $sid');
});
}
}
TODO