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.
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.