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 cannot be opened.

CLOSING

Copy URL

Connection is closing.

CONNECTING

Copy URL

Connection is in the process.

OPEN

Copy URL

Connection is open and ready to communicate.