mcp_io_websocket library
WebSocket adapter for mcp_io.
Classes
- CloseToIoError
-
Maps a WebSocket close code (RFC 6455 + application 4xxx) to a
canonical
IoErrorcode. - DartWebSocketTransport
- Production transport wrapping dart:io WebSocket.
- Heartbeat
- Liveness monitor for a WebSocket connection.
- HeartbeatEvent
- InMemoryWebSocketTransport
- In-memory transport for tests. inject simulates an incoming frame; sentMessages captures all sent frames for assertion.
- Reconnector
- Cooperative reconnect coordinator with exponential backoff.
- WebSocketIoAdapter
- WebSocketTransport
- WsCloseCode
- RFC 6455 ยง7.4 close code constants + named accessors.