altra sintassi
This commit is contained in:
@@ -85,10 +85,11 @@
|
||||
reconnectionHandler: {
|
||||
onConnectionDown: (options, error) => {
|
||||
console.error(error);
|
||||
setTimeout(function () {
|
||||
tryReload();
|
||||
// document.location.reload();
|
||||
}, 2000);
|
||||
// setTimeout(function () {
|
||||
// document.location.reload();
|
||||
// }, 5000);
|
||||
setTimeout(tryReload(), 3000);
|
||||
|
||||
},
|
||||
onConnectionUp: () => {
|
||||
console.log("Client reconnected!");
|
||||
|
||||
Reference in New Issue
Block a user