How to specify the web socket port when using the WebGL platform?
-
I successfully run the webgl platform on ubuntu16.04, it works great.
I found that at least two ports should be listen at run time, except primary port (webgl:port=12345), the second port which looks like it is prepared for web socket?
This port is random, and each time the program started, port not the same, how should I specify this port? -
@JasonWong
looking at the sources of the plugin a simple QWebSocketServer is created without setting a port at all. Thus a random free port is used.
Also there is no setting yet available.What exactly is your problem? Firewall related?
Maybe it's a good idea to file feature-request
-
@raven-worx
Thanks Reply
Firewall related is one of the problemsThe current WebGL platform supports only single process for single user, I want to make a multi-process manager for multi-user access.
This requires port management, which can be very troublesome if I can not changed web socket ports. -
I submitted a suggestion
https://bugreports.qt.io/browse/QTBUG-65232 -
@JasonWong said in How to specify the web socket port when using the WebGL platform?:
The current WebGL platform supports only single process for single user, I want to make a multi-process manager for multi-user access.
i believe i've read that this is planned already.
But i don't know if it comes with 5.11 or later. -
@raven-worx
I found that blog
http://blog.qt.io/blog/2017/07/07/qt-webgl-streaming-merged/Once it’s ready, you will be able to create an application server to launch different process inheriting the web socket to communicate with the browsers. This will allow for supporting more than one concurrent user instead of sharing applications among users.
No scheduled time or qt version
T.T