Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to specify the web socket port when using the WebGL platform?
Forum Updated to NodeBB v4.3 + New Features

How to specify the web socket port when using the WebGL platform?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JasonWongJ Offline
    JasonWongJ Offline
    JasonWong
    wrote on last edited by
    #1

    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?

    raven-worxR 1 Reply Last reply
    0
    • JasonWongJ JasonWong

      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?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @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

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      JasonWongJ 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @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

        JasonWongJ Offline
        JasonWongJ Offline
        JasonWong
        wrote on last edited by
        #3

        @raven-worx
        Thanks Reply
        Firewall related is one of the problems

        The 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.

        raven-worxR 1 Reply Last reply
        0
        • JasonWongJ Offline
          JasonWongJ Offline
          JasonWong
          wrote on last edited by
          #4

          I submitted a suggestion
          https://bugreports.qt.io/browse/QTBUG-65232

          1 Reply Last reply
          0
          • JasonWongJ JasonWong

            @raven-worx
            Thanks Reply
            Firewall related is one of the problems

            The 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.

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            @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.

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            JasonWongJ 1 Reply Last reply
            0
            • raven-worxR raven-worx

              @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.

              JasonWongJ Offline
              JasonWongJ Offline
              JasonWong
              wrote on last edited by JasonWong
              #6

              @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

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved