mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-15 19:13:18 +00:00
Improve websocket implementation
CL: Mongoose Web Server: Websocket: Respond to Ping with Pong CL: Mongoose Web Server: Websocket: Properly close a connection with Close frame (in response to a client's close and when protocol failure is detected) CL: Mongoose Web Server: Websocket: Fix support of fragmented messages CL: Mongoose Web Server: Websocket: Add support for control frames interjected in the middle of a fragmented message PUBLISHED_FROM=e2b3794aaacc64633540c493194cccc62afa2077
This commit is contained in:
1 parent
ce8657f12f
commit
7519b2ef3a
3 files changed
+145
-59
No files matched your search
+2
-4
@@ -4527,10 +4527,8 @@ void mg_send_websocket_frame(struct mg_connection *nc, int op_and_flags,
|
||||
const void *data, size_t data_len);
|
||||
|
||||
/*
|
||||
* Sends multiple websocket frames.
|
||||
*
|
||||
* Like `mg_send_websocket_frame()`, but composes a frame from multiple
|
||||
*buffers.
|
||||
* Like `mg_send_websocket_frame()`, but composes a single frame from multiple
|
||||
* buffers.
|
||||
*/
|
||||
void mg_send_websocket_framev(struct mg_connection *nc, int op_and_flags,
|
||||
const struct mg_str *strings, int num_strings);
|
||||
|
||||
Reference in new issue
Block a user