WS::disconnect¶
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.
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"
}
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.