QT websocket library: sub-protocol not configurable

166 views
Skip to first unread message

ben.ra...@cosmosoftware.io

unread,
May 2, 2017, 11:20:35 PM5/2/17
to meetecho-janus, Alexandre GOUAILLARD
Hello,

I am encountering a small issue when i want to connect my client to JANUS using QT websocket because the subprotocol is not configurable with that library. So if ever you know how can I make it work.

Thank you for your help

Regard
Ben. 

Lorenzo Miniero

unread,
May 3, 2017, 3:18:39 AM5/3/17
to meetecho-janus, Alex.GO...@cosmosoftware.io
I'm not sure you can use libwebsockets (the library we use for WebSockets support) without specifying a subprotocol to manage. If so, you'd have to modify janus_websockets.c to make it not use a subprotocol. Or you could ask the QT developers to support subprotocols instead ;-)

L.

Lorenzo Miniero

unread,
May 3, 2017, 3:19:35 AM5/3/17
to meetecho-janus, Alex.GO...@cosmosoftware.io
As an alternative, why not use libwebsockets itself, instead of the built-in QT websockets stack? It's very lightweight and easy to use, and it allows you to create clients as well (although we only use it as a server in Janus).

L.
Reply all
Reply to author
Forward
0 new messages