Transport adapter that speaks the thread-centric protocol over a
bidirectional WebSocket. Bound to a specific threadId — the socket
connects to ws://.../threads/:thread_id/stream/events.
class ProtocolWebSocketTransportAdapterThread ID this transport is bound to.
Shuts down the transport and releases any underlying resources.
Streams incoming protocol messages from the remote peer. Used by WebSocket transports where all events share one connection.
Opens the underlying connection (e.g. WebSocket handshake). For HTTP/SSE transports this is a no-op.
Sends a command and optionally returns an immediate response.