From: Daniel Stenberg Date: Sun, 18 Jun 2023 18:57:29 +0000 (+0200) Subject: libcurl-ws.3: mention raw mode X-Git-Tag: curl-8_2_0~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ed832a2452f848a17340b529b213acc00bd34b8;p=thirdparty%2Fcurl.git libcurl-ws.3: mention raw mode Closes #11339 --- diff --git a/docs/libcurl/libcurl-ws.3 b/docs/libcurl/libcurl-ws.3 index dbbfa081bd..263430446b 100644 --- a/docs/libcurl/libcurl-ws.3 +++ b/docs/libcurl/libcurl-ws.3 @@ -58,6 +58,18 @@ arrive for the same frame. A message has an unknown size until the last frame header for the message has been received since only frames have set sizes. +.SH "Raw mode" +libcurl can be told to speak WebSocket in "raw mode" by setting the +\fBCURLWS_RAW_MODE\fP bit to the \fICURLOPT_WS_OPTIONS(3)\fP option. + +Raw WebSocket means that libcurl will pass on the data from the network +without parsing it leaving that entirely to the application. This mode assumes +that the user of this knows WebSocket and can parse and figure out the data +all by itself. + +This mode is intended for applications that already have a WebSocket +parser/engine that want to switch over to use libcurl for enabling WebSocket, +but keep parts of the existing software architecture. .SH PING WebSocket is designed to allow long-lived sessions and in order to keep the connections alive, both ends can send PING messages for the other end to