• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Websocket Browser Limit

    Dashboard Designer & Custom AngularJS Pages
    2
    3
    2.4k
    Loading More Posts
    • 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.
    • T
      thewizardguy
      last edited by

      I've got the websockets to work, and I prefer them highly -- they're much more responsive. However, we have hundreds and hundreds of points we need to pull constantly to a front-end custom-made dashboard type thing, and i find that i have a hard limit of about 255ish websockets open at once. I did a bit of research and found that it is a browser/OS limitation and tried to increase it with no effect (OSX, same limitation on windows though...)

      Has anyone hit this issue at all? I have to do endless 5-second-delays on getValue api requests instead =\ I would prefer sockets but they have proven to be unfortunately limiting. Any solutions on this that I don't know about?

      1 Reply Last reply Reply Quote 0
      • terrypackerT
        terrypacker
        last edited by

        One solution would be to use the Realtime data endpoint with a nicely crafted RQL query to return all of the current values for all the points you want, this of course will still require you to poll every 5s.

        The best solution would be for us to code up a new type of Point Value web socket that publishes data for more than one point at a time. We are busy at the moment with the 2.6 release stream but in the coming weeks I can slide this feature into the MangoApi module.

        Any chance you could let us know what you are using Mango for? This might give us some ideas as to what other features you might want in this new web socket endpoint.

        Thanks,
        Terry

        1 Reply Last reply Reply Quote 0
        • terrypackerT
          terrypacker
          last edited by

          I mispoke in my last post, you should be able to use 1 web socket for all your data point values. If you review the web/js/mango-2.0/RealtimeDataProvider.js file in the Dashboards module you can see how this would work. Basically you just need 1 web socket and can then send additional registration requests for each data point you want.

          The next version of the Dashboards module (1.1.1) will contain an example of how to use 1 web socket for all point values captured within Mango.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post