Comment on page
WebSocket is an EXPERIMENTAL feature present in libcurl 7.86.0 and later. Since it is experimental, you need to explicitly enable it in the build for it to be present and available.
To figure out if your libcurl installation supports WebSocket, you can call
curl_version_info()and check the
->protocolsfields in the returned struct. It should contain
wsfor it to be present, and probably also