The subset of a socket the main-process RPC layer touches. Both ws's server-side sockets and
the DOM WebSocket type satisfy it structurally, and so does a MessagePort wrapped to look like
one. RpcServer and RpcWebSocketListener are written against this rather than against
WebSocket so that main can serve a client over something other than a TCP socket.
The subset of a socket the main-process RPC layer touches. Both
ws's server-side sockets and the DOMWebSockettype satisfy it structurally, and so does a MessagePort wrapped to look like one.RpcServerandRpcWebSocketListenerare written against this rather than againstWebSocketso that main can serve a client over something other than a TCP socket.