test gestione reload auto

This commit is contained in:
Samuele Locatelli
2024-03-04 17:44:10 +01:00
parent aeedbedbc5
commit 62149c500b
+20 -19
View File
@@ -65,27 +65,28 @@
maxRetries: 600,
retryIntervalMilliseconds: 1000
},
// reconnectionHandler: {
// onConnectionDown: (options, error) => {
// console.error(error);
// // setTimeout(function () {
// // document.location.reload();
// // }, 10000);
// },
// onConnectionUp: () => {
reconnectionHandler: {
// onConnectionDown: (options, error) => {
// console.error(error);
// // setTimeout(function () {
// // document.location.reload();
// // }, 10000);
// },
onConnectionUp: () => {
console.log("Client reconnected!");
document.location.reload();
}
}
// }).then(() => {
// Blazor.defaultReconnectionHandler._reconnectCallback = function (d) {
// console.log("Client reconnected!");
// // document.location.reload();
// }
// }
// }).then(() => {
// Blazor.defaultReconnectionHandler._reconnectCallback = function (d) {
// console.log("Client reconnected!");
// // document.location.reload();
// }
// // Blazor.defaultReconnectionHandler._reconnectionDisplay = {
// // show: () => value.show(),
// // update: (d) => value.update(d),
// // rejected: (d) => document.location.reload()
// // };
// // Blazor.defaultReconnectionHandler._reconnectionDisplay = {
// // show: () => value.show(),
// // update: (d) => value.update(d),
// // rejected: (d) => document.location.reload()
// // };
});
</script>