Zen API

- Home
- Topics
- Types
- Files

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

  webSocket | WebSocket object.

Returns
  Operation status.