ClientReadyState: {
    CLOSED: 3;
    CLOSING: 2;
    CONNECTING: 0;
    OPEN: 1;
} = ...

Same as WebSocket readyState