Commit 977f137a authored by somdoron's avatar somdoron

problem: cannot check WS and WSS capability

Solution: add capability check to zmq_has
parent 41b9af2c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment