[Libwebsockets] lws_client_connect_via_info() - protocol 0 handler

Joel Winarske joel.winarske at gmail.com
Tue Feb 14 18:50:07 CET 2017

Hi Andy,

How do I override the http client protocol handler in the case of lwsws?

When I set info.protocol to my protocol name, it has no effect.

In lws_client_connect_via_info() I see the following; which for lwsws
assigns it to "http-only":

wsi->protocol = &wsi->vhost->protocols[0];

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20170214/6116c013/attachment.html>

More information about the Libwebsockets mailing list