Create a new WebSocket client transport
WebSocket URL (ws:// or wss://)
Connection options
Current transport state
Whether the transport is currently connected
Register an event listener
Remove an event listener
Register a one-time event listener
Protected emitEmit an event
Remove all listeners for an event, or all events
Optional event: KGet the number of listeners for an event
Static fromCreate from host and port
Send a message through the transport
Promise that resolves when the message is sent (not when response is received)
Interface for client-side transports