Options for ThreadStream construction.
interface ThreadStreamOptionsStarting command ID for the internal command counter. Mostly useful for tests.
How this thread talks to the agent server. Accepts either a built-in transport string or a custom AgentServerAdapter:
"sse": HTTP commands + one SSE event stream per subscription."websocket": single bidirectional WebSocket.fetch / webSocketFactory
are ignored in this mode.Defaults to the client-level streamProtocol
("v2-websocket" → "websocket", otherwise "sse").
Optional WebSocket factory. Supplying it flips the adapter into WebSocket mode — SSE is bypassed entirely.