Creates TCP transport options.
TcpOptions({required int port, TcpSocket? socket}) : socket = socket ?? JsonSocket(), super(port);