Available on lua
dohandshake():Result<Bool>
getpeername():AddrInfo
receive(pattern:EitherType<ReceivePattern, Int>, ?prefix:String):Result<String>
send(data:String, ?i:Int, ?j:Int):Result<Int>
setoption(option:TcpOption, value:EitherType<Bool, {timeout:Float, on:Bool}>):Void
shutdown(mode:ShutdownMode):Result<Int>
close():Void
getsockname():AddrInfo