[Libwebsockets] Limit the ws connections to 1

Stefano Mora stefano.mora at newdep.com
Sat Jan 12 15:16:42 CET 2019

Hi all,

I wrote a ws server but for this particular case I need to limit the connections to only 1.

How can I achieve it?

Is there a kind of return code for LWS_CALLBACK_ESTABLISHED to deny a second access?


Stefano Mora / SW Engineer
stefano.mora at newdep.com<mailto:stefano.mora at newdep.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20190112/d322ffc1/attachment.html>

More information about the Libwebsockets mailing list