Rate this page:

WebSocketReadyState

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

require(Modules.WebSocket);