The connection is in the process of closing.
The connection is not yet open.
The connection is open and ready to communicate.
Indicates whether the websocket is paused
The current state of the connection
Pause the websocket causing it to stop emitting events. Some events can still be
emitted after this is called, until all buffered data is consumed. This method
is a noop if the ready state is CONNECTING
or CLOSED
.
Make a paused socket resume emitting events. This method is a noop if the ready
state is CONNECTING
or CLOSED
.
The connection is closed.