PDA

View Full Version : Does QWebSocketServer supports URL path-differentiated connections?



azurvii
7th November 2014, 10:55
What I mean is how do I create a socket server so that it accepts connections to, for example,:
ws://localhost:1234/echo
ws://localhost:1234/chat

I don't find it anywhere in the Qt doc.

anda_skoa
7th November 2014, 12:15
The QWebSocket instances have a requestUrl() method. Doesn't this contain the URL used by the client?

Otherwise, maybe use two instances of QWebSocketServer on two different ports? Like in non HTTP network programming?

Cheers,
_