Connects to the server using the given uri and protocol.
Future<void> connect( {required String uri, Map<String, dynamic>? headers, String protocol});