Rate this page:

WebSocketReadyState

Add the following line to your scenario code to use the enum:

require(Modules.WebSocket);

Constants

CLOSED

Copy URL

Connection is closed or couldn't be opened.

CLOSING

Copy URL

Normal connection closure.

CONNECTING

Copy URL

Connection is in the process of closing.

OPEN

Copy URL

Connection is open and ready to communicate.