websocket-ts
Version:
<div> <div align="center"> <img src="https://raw.githubusercontent.com/jjxxs/websocket-ts/gh-pages/websocket-ts-logo.svg" alt="websocket-ts" width="300" height="65" /> </div> <p align="center"> <img src="https://github.com/jjxxs/websocket-ts
19 lines • 863 B
JavaScript
/**
* Events that can be fired by the websocket.
*/
export var WebsocketEvent;
(function (WebsocketEvent) {
/** Fired when the connection is opened. */
WebsocketEvent["open"] = "open";
/** Fired when the connection is closed. */
WebsocketEvent["close"] = "close";
/** Fired when the connection has been closed because of an error, such as when some data couldn't be sent. */
WebsocketEvent["error"] = "error";
/** Fired when a message is received. */
WebsocketEvent["message"] = "message";
/** Fired when the websocket tries to reconnect after a connection loss. */
WebsocketEvent["retry"] = "retry";
/** Fired when the websocket successfully reconnects after a connection loss. */
WebsocketEvent["reconnect"] = "reconnect";
})(WebsocketEvent || (WebsocketEvent = {}));
//# sourceMappingURL=websocket_event.js.map