WS::enabled

Description

WS::enabled This can be used to determine whether the Websocket processing is enabled or disabled for a particular connection.
WS::enabled false This can be used to disable the Websocket processing for a particular connection.

Syntax

WS::enabled ( 'false' )?

WS::enabled ( ‘false’ )?

Return Value

WS::enabled command returns TRUE if Websocket processing is enabled for a particular connection, FALSE otherwise.

Valid During

WS_REQUEST WS_RESPONSE HTTP_REQUEST HTTP_RESPONSE

Examples

when WS_REQUEST {
     WS::enabled false
     log local0. "Websocket state: [WS::enabled]"
 }
 when WS_RESPONSE {
     WS::enabled false
     log local0. "Websocket state: [WS::enabled]"
 }
 when HTTP_REQUEST {
     WS::enabled false
 }

Change Log

@BIGIP-12.1 –First introduced the command.

The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.