Lost connection to server, reconnecting

I have been trying to figure out why this "Lost connection to server, reconnecting" keeps showing up (for the past year at least). It doesn't matter which version of node-red I'm using, and it happens on Safari on Mac and Safari on iPhone.

I also cannot see any "debug" messages (and none in the log). So no console.out are getting displayed, but debug module outputs go to the node-red.log file.

Someone mentioned there is a WebSocket between node-red and the browser. This might explain why no debug messages since the "connection to the server" is lost.

My apps use lots of Websockets and MQTT as well (in case this interferes?).

NOTE: I use port 2000 (not 1880) is this an issue? (After a bitcoin hack)

And I'm using an AWS linux (debian?) install. Things work fine on my macs.

Also: [warn] rpi-gpio : Raspberry Pi specific node set inactive

I have the latest of everything. Any ideas?
thanks
scott

I'm facing similar problem, i have a node-red running behind the firewall, so I opened 1880 port for specific domain. But I can see always this error "Lost connection to server, reconnecting in xxs. Try now..." on the dashboard and debug is not showing any log information. I also can see what the were attempts to connect to ws://mydomain/comms with the Gateway error 502. Any suggestion how I can resolve it?