Optional oncloseEvent listener called when the WebSocket connection is closed.
Optional onerrorEvent listener called when an error occurs on the WebSocket connection.
Optional onmessageEvent listener called when a message is received from the server.
Optional onmessageJSONEvent listener called when a JSON message is received from the server.
Optional onopenEvent listener called when the WebSocket connection is opened.
Optional topicOptional identifier for a specific WebSocket topic.
Optional websocketInstance of the ReconnectingWebSocket associated with this subscriber.
Unique identifier for the WebSocket subscriber.