From 4e310dc292665f52f0fe2ca5374db703bb90cd34 Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Thu, 26 Jan 2023 16:44:50 -0500 Subject: [PATCH] add autorecommect option --- wwwroot/js/site.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wwwroot/js/site.js b/wwwroot/js/site.js index 860f1f0..62e266b 100644 --- a/wwwroot/js/site.js +++ b/wwwroot/js/site.js @@ -1,4 +1,7 @@ -let connection = new signalR.HubConnectionBuilder().withUrl("/noteHub").build(); +let connection = new signalR.HubConnectionBuilder() + .withAutomaticReconnect() + .withUrl("/noteHub") + .build(); let start = function () {