[APP][Pro] Web Proxy - Remotely access local web pages in your Dashboards

It does!

Version 1.0.7

  • Updated app image to remove text

+1 for music choice :smiley:

Version 1.1.0

  • Added WebSocket support

I’ve just added WebSocket support in the test version, can you try it again with this version?

Installed testversion, but same.message

Version 1.1.1

  • Added support for dynamic script loading

Can you try again with the new test version?

Still no luck. Same message

How did you build the dashboard? I installed Node-RED on a Raspberry Pi but I can’t see where you can open the dashboard UI

Yes om a pi5. Go to the dashboard tab

And then:

I don’t have the option for the dashboard. Is there something specific you need to do first?

Long time ago, but got the info here back then:

There is a video in the first post to set up the dashboard ui

I was able to reproduce the issue, it appears that my proxy app doesn’t intercept the SocketIO requests correctly. Probably it’s in the domain check (which checks if the URL needs to be rewritten) which interprets socket.io as the root domain, while it’s just a URL on the IP of the Node-RED server.

I also see another issue with an HTML file, but I’m not sure if that’s intended behaviour. I will need to check that.

I will fix the issue but it might take some time because I have to check how the dashboard loads the HTML files

1 Like

Would be great if you can fix it!

I was able to fix the URL part of it, but it looks like SocketIO is very different from regular WS. It first attempts polling but that doesn’t work. It’s likely because my web request proxy function just returns the data it receives on the web request and then closes the connection, while polling needs to send realtime data.

The WS upgrade feature of SocketIO is also not working, it looks like the connection is being closed too quickly. I don’t know if there’s a solution for that, I would have to do some more debugging on why it closes the connection. It might be because there’s simply too much latency in between the connection request and the authentication WS message, but I have to check that.

1 Like

I did some more testing and it appears that the web page requests the connection to be closed before it’s established

I don’t know why the page doesn’t wait for the connection to be established, maybe it takes too long with the proxy inbetween.
While I probably can’t get the WS proxy to work with this page, I can try to write a function to handle the long polling that SocketIO also supports.

2 Likes

Hope that will be the solution, otherwise i will have to live with itšŸ˜‰. Thanks for all the work you put into it.

1 Like

Version 1.1.2

  • Added cookie support
  • Added redirect (302) support
  • Fixed URL constructor