WebSocketReadyState

4 values
View as Markdown

Values

CLOSED
'closed'

Connection is closed or cannot be opened.

CLOSING
'closing'

Connection is closing.

CONNECTING
'connecting'

Connection is in the process.

OPEN
'open'

Connection is open and ready to communicate.