mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Add extra headers param to mg_ws_upgrade()
This commit is contained in:
1 parent
72d3a49352
commit
ae6fd6aa35
8 files changed
+49
-28
No files matched your search
+5
-2
@@ -806,10 +806,13 @@ Create client Websocket connection.
|
||||
### mg\_ws\_upgrade()
|
||||
|
||||
```c
|
||||
void mg_ws_upgrade(struct mg_connection *, struct mg_http_message *);
|
||||
void mg_ws_upgrade(struct mg_connection *, struct mg_http_message *,
|
||||
const char *fmt, ...);
|
||||
```
|
||||
|
||||
Upgrade given HTTP connection to Websocket.
|
||||
Upgrade given HTTP connection to Websocket. The `fmt` is a printf-like
|
||||
format string for the extra HTTP headers returned to the client in a
|
||||
Websocket handshake. Set `fmt` to `NULL` if no extra headers needs to be passed.
|
||||
|
||||
|
||||
### mg\_ws\_send()
|
||||
|
||||
Reference in new issue
Block a user