Rate this page:

WebsocketCloseCode

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

require(Modules.WebSocket);

Constants

CLOSED_NO_STATUS

Copy URL

Expected close status, received none.

CLOSE_ABNORMAL

Copy URL

No close code frame has been received.

CLOSE_BAD_GATEWAY

Copy URL

Server acting as gateway received an invalid response.

CLOSE_GOING_AWAY

Copy URL

Endpoint is leaving (browser tab closing).

CLOSE_MANDATORY_EXTENSION

Copy URL

Client wanted an extension which server did not negotiate.

CLOSE_NORMAL

Copy URL

Normal connection closure.

CLOSE_POLICY_VIOLATION

Copy URL

Received message violates endpoint policy.

CLOSE_PROTOCOL_ERROR

Copy URL

Endpoint received a malformed frame.

CLOSE_SERVER_ERROR

Copy URL

Internal server error while operating.

CLOSE_SERVICE_RESTART

Copy URL

Server/service is restarting.

CLOSE_TLS_FAIL

Copy URL

Failed to perform a TLS handshake.

CLOSE_TOO_LARGE

Copy URL

Too large frame.

CLOSE_TRY_AGAIN_LATER

Copy URL

Temporary server condition forced blocking the client's request.

CLOSE_UNSUPPORTED

Copy URL

Endpoint received an unsupported frame.

CLOSE_UNSUPPORTED_PAYLOAD

Copy URL

Endpoint received inconsistent message.