Name
easy:SetOpt_WS_Options -- WebSocket behavior options (V2.0)
Synopsis
easy:SetOpt_WS_Options(bitmask)
Function
Pass a bitmask to tell libcurl about specific WebSocket behaviors.

To detach a WebSocket connection and use the WS send and recv functions after the HTTP upgrade procedure, get the #CURLOPT_CONNECT_ONLY option to 2.

Available bits in the bitmask:

#CURLWS_RAW_MODE
Deliver "raw" WebSocket traffic to the #CURLOPT_WRITEFUNCTION callback.

In raw mode, libcurl does not handle pings or any other frame for the application.

Inputs
bitmask
input value

Show TOC