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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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).