Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1    Statistic    FMM    Blog  


Sets WebSocket behaviour options.

Component Version macOS Windows Linux Server iOS SDK
CURL 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionWebSocketOptions"; curl; Options )   More


Parameter Description Example
curl The CURL session handle. $curl
Options The new options.


Returns OK or error.


Sets WebSocket behaviour options.
Pass a bit mask to tell CURL about specific WebSocket behaviors.

To detach a WebSocket connection and use the CURL.WebSocketSend and CURL.WebSocketReceive functions after the HTTP upgrade procedure, set the CURL.SetOptionConnectOnly option to 2.

Available bits in the bitmask:

1: Deliver "raw" WebSocket traffic to the Write event.

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

See also

Release notes

Blog Entries

This function checks for a paid license.

Created 11st December 2022, last changed 11st December 2022

CURL.SetOptionVerbose - CURL.SetOptionWildCardMatch

💬 Ask a question or report a problem

Start Chat