Establishes the underlying connection.
@override Future<void> connect() async { if (_closed) { throw StateError('Cannot reconnect a closed MemoryTransport'); } _connected = true; }