Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kWebSocket_WriteMessage | ( | kWebSocket | webSocket,
|  | const void * | buffer,
|  | kSize | size
| ) |  |

Writes a complete WebSocket message.

This method can be used as an alternative to kStream_Write/kWebSocket_Send.

This method can be used to generate a WebSocket message from a single input buffer. The WebSocket's internal client buffer is bypassed.

Parameters

  webSocket | WebSocket object.
  buffer | Bytes to be written.
  size | Count of bytes to be written.

Returns
  Operation status.