mongoose/docs/c-api/mg_http.h/mg_send_websocket_frame.md
Dmitry Frank 3eb4eb8074 Fix mongoose docs generation
PUBLISHED_FROM=331821dcd1f7dc8a94581cd8a9b51aa00a89fddc
2018-02-03 01:20:48 +02:00

627 B

title decl_name symbol_kind signature
mg_send_websocket_frame() mg_send_websocket_frame func void mg_send_websocket_frame(struct mg_connection *nc, int op_and_flags, const void *data, size_t data_len);

Send WebSocket frame to the remote end.

op_and_flags specifies the frame's type. It's one of:

  • WEBSOCKET_OP_CONTINUE
  • WEBSOCKET_OP_TEXT
  • WEBSOCKET_OP_BINARY
  • WEBSOCKET_OP_CLOSE
  • WEBSOCKET_OP_PING
  • WEBSOCKET_OP_PONG

Orred with one of the flags:

  • WEBSOCKET_DONT_FIN: Don't set the FIN flag on the frame to be sent.

data and data_len contain frame data.