mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:43:33 +03:00
WebSockets: make support official (non-experimental)
Inverts the configure/cmake options to instead provide options that disable WebSockets and have them (ws + wss) enabled by default. Closes #14936
This commit is contained in:
parent
cfae354a9a
commit
d78e129d50
26 changed files with 108 additions and 107 deletions
|
|
@ -384,11 +384,14 @@ static const char * const supported_protocols[] = {
|
|||
#ifndef CURL_DISABLE_TFTP
|
||||
"tftp",
|
||||
#endif
|
||||
#ifdef USE_WEBSOCKETS
|
||||
#ifndef CURL_DISABLE_HTTP
|
||||
/* WebSocket support relies on HTTP */
|
||||
#ifndef CURL_DISABLE_WEBSOCKETS
|
||||
"ws",
|
||||
#endif
|
||||
#if defined(USE_SSL) && defined(USE_WEBSOCKETS)
|
||||
#if defined(USE_SSL) && !defined(CURL_DISABLE_WEBSOCKETS)
|
||||
"wss",
|
||||
#endif
|
||||
#endif
|
||||
|
||||
NULL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue