Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kWebSocket_Close ( kWebSocket  webSocket)

Closes the WebSocket connection.

Use of this method is optional. Websockets can technically be closed by destroying the underlying TCP client. The Close method (which implements a closing handshake) is recommended in RFC 6455 to achieve a "clean" close.

Parameters
webSocketWebSocket object.
Returns
Operation status.