WebSocketState enum WebSocketState { DISABLED = -1, INIT = 0, CONNECTING = 1, CONNECTED = 2, CLOSING = 3, CLOSED = 4 }