ext/iodine/websockets.c
/** Writes data to the websocket. Returns -1 on failure (0 on success). */
Writes data to the websocket. Returns -1 on failure (0 on success).
Writes data to the websocket . Returns - 1 on failure ( 0 on success ) .
int websocket_write(ws_s *ws, fio_str_info_s msg, uint8_t is_text) {
  if (fio_is_valid(ws->fd)) {
    websocket_write_impl(ws->fd, msg.data, msg.len, is_text, 1, 1,
                         ws->is_client);
    return 0;
  }
  return -1;
}
int websocket_write ( ws_s * ws , fio_str_info_s msg , uint8_t is_text ) { if ( fio_is_valid ( ws -> fd ) ) { websocket_write_impl ( ws -> fd , msg . data , msg . len , is_text , 1 , 1 , ws -> is_client ) ; return 0 ; } return -1 ; }
Writes data to the websocket.
Writes data to the websocket .