ws_send

ws_send(struct ws_client *client, const void *buf, size_t size)

Sends data to a client.

const char *buf = "hello";
ws_send(client, (const void*)buf, 5);

Parameters
  • client[in] Some client

  • buf[in] Buffer containing data to send

  • size[in] Buffer size

Returns

Number of bytes sent.