• leandro

    Actually, never mind. I am able to connect to the websocket on a console on a logged in tab.

    Now I need to figure out how to log in and use that in my connection.

    posted in Mango Automation read more
  • leandro

    Hi,

    Thanks for the input and sorry for the long delay. I am finally able to tackle this again.

    I have tried as you suggested and I too get the 403 and 405 errors. Can you provide an example of how to do this while logged?

    I think that I should be able to run :

    new WebSocket('ws://localhost:8080/rest/v1/websocket/point-values')
    

    or (not sure of the difference):

    new WebSocket('ws://localhost:8080/rest/v2/point-values')
    

    within the console of a correctly logged in session and connect to the ws server.

    posted in Mango Automation read more
  • leandro

    Thanks for your tips. It worked like a charm!

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • leandro

    @Jared-Wiltshire Thanks! I have tried using the provided admin template and I get app.js:6 Uncaught ReferenceError: require is not defined.

    Then I tried downloading the mangoUI module from github (version 3.4.5 as of yesterday) but I still get errors. Maybe it is not as simple as replacing the mangoUI folder?

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • leandro

    I took what used to be the admin template and have been building on top of that.

    So my files are here:
    /mango/overrides/web/modules/mangoUI/web/myProject

    And changed all appropiate lines, i.e.:
    <script>require(['mangoUIModule/myProject/app']);</script>

    Then I have built directives and components on top of that, using requireJS and AngularJS modules. Basically following the spirit of the admin template but more complex.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • leandro

    Hi,

    I am running latest version of Mango (3.4.4) and my custom dashboards are not working anymore.

    I see that the web folder for the mangoUI module has changed substantially and that's why I can't use the overrides folder anymore in my app.

    How can I make it work again?

    Regards. Leandro

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • leandro

    Hi there!

    I am interested in using the websocket connection that Mango provides. I am also interested in developing apps with other frameworks other than AngularJS that may be served separately from Mango.

    I know of the REST API, but hooking into the websocket provides the responsiveness that I am looking for.

    I am wondering if it is possible for you guys to add the ability to enable cross-origin support for the websocket?

    Regards,
    Leandro

    posted in Mango Automation read more
  • leandro

    Thanks! That was quick!

    posted in User help read more
  • leandro

    Hi,

    Thanks for making mango-client. It is really helpful.

    I am using the latest version from NPM and I was fighting a bug. I was about to submit a pull request when I saw that the code in the github repo is way ahead than the version that is on NPM, and my issue has already been fixed.

    Please update the published NPM version.

    posted in User help read more