ConstReadonlyclose: "close"Fired when the connection is closed.
Readonlyerror: "error"Fired when the connection has been closed because of an error, such as when some data couldn't be sent. Also fired when an automatic retry fails because the URL provider or the WebSocket constructor threw; that event is an ErrorEvent whose 'error' is the thrown value.
Readonlyexhausted: "exhausted"Fired when the websocket gives up reconnecting after exceeding maxRetries.
Readonlymessage: "message"Fired when a message is received.
Readonlyopen: "open"Fired when the connection is opened.
Readonlyreconnect: "reconnect"Fired when the websocket successfully reconnects after a connection loss.
Readonlyretry: "retry"Fired when the websocket tries to reconnect after a connection loss.
Events that can be fired by the websocket.