createWebSocketTransport(socket: WebSocketLike): IWebSocketTransport
Wraps a web-API socket as an IWebSocketTransport.
readyState is read through a getter so the transport always reports the
socket's live state rather than a value captured at wrap time.
socket: WebSocketLike
The native socket