Optional
automaticOptional
binaryThe binary type, possible values 'blob' or 'arraybuffer', default 'blob'.
Optional
debugWhether this instance should log debug messages.
Optional
maxThe maximum number of reconnection attempts to make. Unlimited if null.
Optional
maxThe maximum number of milliseconds to delay a reconnection attempt.
Optional
protocolsProtocols to be used
Optional
reconnectThe rate of increase of the reconnect delay. Allows reconnect attempts to back off when problems persist.
Optional
reconnectThe number of milliseconds to delay before attempting to reconnect.
Optional
timeoutThe maximum time in milliseconds to wait for a connection to succeed before closing and retrying.
Optional
websocketWebSocket Class to create the WebSocket, this is mainly to mock it for testing
Readonly
CLOSED: numberReadonly
CLOSING: numberReadonly
CONNECTING: numberReadonly
OPEN: numberGenerated using TypeDoc
Whether or not the websocket should attempt to connect immediately upon instantiation.