ReadonlyreadyNumeric ready state, matching the web WebSocket API's values.
Closes the socket.
Optionalcode: number
RFC 6455 close code
Optionalreason: string
Close reason
Subscribes to a socket event.
Event name
Event listener
Sends a text or binary frame.
The frame payload
A
wssocket, narrowed to what this adapter drives. Declared structurally so the package never takes a type dependency on@types/ws.Since
0.2.0