Reload the page automatically when the web service is restarted

Thanks for the shoutout @psDevUK!
The post you’re referencing is using the HTTP Meta Inf setting, to force the browser to relead the page.

Requires UDHelmet though.

Pure javascript to piggyback on the onclose event of the websocket:

window.UniversalDashboard.webSocket.onclose = function(event) { location.reload()};

Never tested the JS, but should work if you trigger it with invoke-udjavascript :slight_smile:

2 Likes