diff --git a/app/frontend/templates/base.html b/app/frontend/templates/base.html index 0ef79be5..4b28120a 100755 --- a/app/frontend/templates/base.html +++ b/app/frontend/templates/base.html @@ -220,7 +220,7 @@ }; wsInternal.onclose = function (closeEvent) { console.log('Closed WebSocket', closeEvent); - warn('WebSockets are required for Crafty to work. This websocket connection has been closed. Are you using a reverse proxy?', 'https://wiki.craftycontrol.com/en/4/docs/Reverse%20Proxy%20Examples') + setTimeout(sendWssError, 7000); }; @@ -339,6 +339,10 @@ }); } + function sendWssError(){ + warn('WebSockets are required for Crafty to work. This websocket connection has been closed. Are you using a reverse proxy?', 'https://wiki.craftycontrol.com/en/4/docs/Reverse%20Proxy%20Examples') + } + function eulaAgree(server_id, command) { //< !--this getCookie function is in base.html-- > var token = getCookie("_xsrf");