new(url:String, port:Int, errorCallback:() ‑> Void, closeCallback:() ‑> Void)
listen(listener:Bytes ‑> Void):Void
send(bytes:Bytes, mandatory:Bool):Void