]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libcurl-ws.3: mention raw mode
authorDaniel Stenberg <daniel@haxx.se>
Sun, 18 Jun 2023 18:57:29 +0000 (20:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 18 Jun 2023 21:39:51 +0000 (23:39 +0200)
Closes #11339

docs/libcurl/libcurl-ws.3

index dbbfa081bda1f4da6ad6600c4f3497bf19e4d0fb..263430446b2ca789bd082b4e44741f99e166da78 100644 (file)
@@ -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