[Libwebsockets] question about multi-protocols in libwebsockets

Felix Zhang guojunzhang1981 at gmail.com
Thu Jul 16 07:24:05 CEST 2020


Hi Andy,

Hope you are doing well.
I have one question about how to support multiple subprotocol in on a
websocket connection.
for example,
client sends "Sec-WebSocket-Protocol: protocol-a, protocol-b, protocol-c"
and server selects only "protocol-a" and "protocol-c" and the response
like" Sec-WebSocket-Protocol: protocol-a, protocol-c ".

Is this a common case? and do we support this case today?
Thanks in advance.

sincerely,
Felix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200715/d0d40eac/attachment.htm>


More information about the Libwebsockets mailing list