Represents a connection to a tcp socket

Constructor

new()

Methods

@:value({ maxConnections : 10 })bind(host:String, port:Int, maxConnections:Int = 10):Void

registerCallback(listener:(packet:Bytes) ‑> Void):Void