Optional
headers: { [key: string]: string }Private
_connectedPrivate
_messagesPrivate
_parsePrivate
_rawPrivate
_serializeWhether the WebSocket is connected or not.
The newest or next WebSocket message.
The raw ws instance.
Send a ping frame to the server. Returns a promise that resolves once a pong
response was received.
Optional
data: anyThe data to send along with the ping frame.
Whether to parse and serialize the sent and received data. Defaults to false.
Generated using TypeDoc
A WebSocket client.