mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-26 20:38:25 +00:00
Update mg_connect_ws.md
This commit is contained in:
1 parent
29725c97f1
commit
92290cfe81
1 file changed
+1
-1
@@ -13,7 +13,7 @@ Helper function that creates an outbound WebSocket connection.
|
|||||||
|
|
||||||
`url` is a URL to connect to. It must be properly URL-encoded, e.g. have
|
`url` is a URL to connect to. It must be properly URL-encoded, e.g. have
|
||||||
no spaces, etc. By default, `mg_connect_ws()` sends Connection and
|
no spaces, etc. By default, `mg_connect_ws()` sends Connection and
|
||||||
Host headers. `extra_headers` is an extra HTTP headers to send, e.g.
|
Host headers. `extra_headers` is an extra HTTP header to send, e.g.
|
||||||
`"User-Agent: my-app\r\n"`.
|
`"User-Agent: my-app\r\n"`.
|
||||||
If `protocol` is not NULL, then a `Sec-WebSocket-Protocol` header is sent.
|
If `protocol` is not NULL, then a `Sec-WebSocket-Protocol` header is sent.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user