Readonly
attributesAttributes of the transport.
Readonly
rxIterable of incoming packets received through the transport.
Reopen the transport by connecting again with the same options.
Function to accept outgoing packet stream.
Iterable of outgoing packets sent through the transport.
Size of each packet cannot exceed .mtu
.
Promise that resolves when iterable is exhausted or rejects upon error.
Static
connectCreate a transport by connecting to WebSocket server or from existing WebSocket instance.
Server URI or existing WebSocket instance.
WebSocket transport.