new (_host:String)
Connect to the given host (works for wss and ws)
Parameters:
_host
close ():Void
dynamiconClose (m:Int):Void
Event listener for when the socket is closed
dynamiconError (s:String):Void
Event listener for when the socket errors
s
dynamiconMessage (m:String):Void
Event listener for when a message is received
m
dynamiconReady ():Void
Event listener for when the socket is open and connected
send (m:String):Void
Send a raw string as a message.
sendJson (d:Dynamic):Void
Send any object as json.
d