/** * WebSocket state. * * *
*/ export enum WebSocketState { /** * This value does not exist in the web * * The initial state of a {@link WebSocket} instance. */ // CREATED, /** * An opening * handshake is being performed. */ CONNECTING, /** * The WebSocket connection is established ( the opening handshake * has succeeded) and usable. */ OPEN, /** * A closing * handshake is being performed. */ CLOSING, /** * The WebSocket connection is closed. */ CLOSED }