Represents a connection to a tcp socket
new()
@:value({ maxConnections : 10 })bind(host:String, port:Int, maxConnections:Int = 10):Void
close():Void
registerCallback(listener:(packet:Bytes) ‑> Void):Void
sendPacket(packet:Bytes):Promise<Int>