I have used this in my code and it didn't seem to fix the auto refreshing. my proxy is Nginx with NPM (Nginx proxy manager) sitting on top.

with the code attached before.
`location /socket.io/ {
Forward requests to your REI3 instance
proxy_pass https://<serverhere>/socket.io/;
proxy_http_version 1.1;
# Ensure proper handling of WebSocket upgrade requests
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
# Increase timeouts for long-lived websocket connections
proxy_read_timeout 86400;
proxy_send_timeout 86400;
# Disable buffering for realtime data
proxy_buffering off;
# If your REI3 uses a self-signed certificate, disable SSL verification:
proxy_ssl_verify off;
}`