Available on js
By compiling the haxe.remoting.SocketWrapper into a SWF, you can create and use XMLSockets directly from Javascript.
haxe.remoting.SocketWrapper
new(flashObject:String)
close():Void
connect(host:String, port:Int):Void
dynamiconClose():Void
dynamiconConnect(b:Bool):Void
dynamiconData(data:String):Void
send(data:String):Void