createWebTransportSocket
A WebSocket class that connects over WebTransport: messages on one reliable stream, volatile sends as datagrams, and a WebSocket where WebTransport isn't available or can't connect. Pass it as the WebSocket option.
Available only from react-websocket/webtransport. It has no imports, and its size (about 1.7 kB min+gzip) is separate from the main entry's. The guide, with the wire format for servers, is WebTransport.
Usage
Parameters
Returns
A WebTransportWebSocket: a class with the WebSocket interface, plus: