Skip to content

snwhd/haxe-socketio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haxe-socketio

A (work in progress) Haxe implementation of the socket.io protocol.

Install

haxelib git haxe-socketio https://github.com/snwhd/haxe-socketio.git
# TODO: haxelib install haxe-socketio

Example Server

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');
        });

    }

}

Example Client

TODO

About

A Haxe Socket.io implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published