The minimal websocket surface the websocket-transport drivers depend on: assignable lifecycle
handlers plus send/close. Declaring the seam as an interface (rather than the platform
WebSocket) lets unit tests inject a fully in-memory fake — no websocket, no network.
The minimal websocket surface the websocket-transport drivers depend on: assignable lifecycle handlers plus
send/close. Declaring the seam as an interface (rather than the platformWebSocket) lets unit tests inject a fully in-memory fake — no websocket, no network.