problem: cannot check WS and WSS capability

Solution: add capability check to zmq_has
This commit is contained in:
somdoron 2019-10-04 16:27:36 +03:00
parent 41b9af2c79
commit 977f137a83

View File

@ -1480,6 +1480,14 @@ int zmq_has (const char *capability_)
#if defined(ZMQ_BUILD_DRAFT_API)
if (strcmp (capability_, "draft") == 0)
return true;
#endif
#if defined(ZMQ_HAVE_WS)
if (strcmp (capability_, "WS") == 0)
return true;
#endif
#if defined(ZMQ_HAVE_WSS)
if (strcmp (capability_, "WSS") == 0)
return true;
#endif
// Whatever the application asked for, we don't have
return false;