mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Delay wss error message for slower systems
This commit is contained in:
parent
51697039cd
commit
52d53aafe4
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user