ltm rule command WS disconnectΒΆ

iRule(1)					  BIG-IP TMSH Manual					     iRule(1)

WS::disconnect
       This command can be used to disconnect a Websocket connection.

SYNOPSIS
       WS::disconnect ( CODE (RSN)? )

DESCRIPTION
       WS::disconnect  
	   The Websocket connection is disconnected by sending a close frame to both end-points when the current
       frame is done. The specified code and reason will be sent in the header and payload of the frame respectively.

RETURN VALUE
VALID DURING
       WS_CLIENT_FRAME_DONE WS_SERVER_FRAME_DONE

EXAMPLES
	when WS_CLIENT_FRAME_DONE {
	    WS::disconnect 1000 "some random reason"
	}
	when WS_SERVER_FRAME_DONE {
	    WS::disconnect 1000 "some random reason"
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-12.1.0 --First introduced the command.

BIG-IP						      2020-06-23					     iRule(1)