Added the server timeout for signalR

This commit is contained in:
ashutosh.nehete 2025-11-17 18:12:35 +05:30
parent 767475c7e5
commit 507bc68da9

View File

@ -23,8 +23,11 @@ export function startSignalR(loggedUser) {
transport: signalR.HttpTransportType.LongPolling,
withCredentials: false,
})
// .withKeepAliveInterval(30000)
// .withServerTimeout(30000)
.withAutomaticReconnect()
.build();
connection.serverTimeoutInMilliseconds = 30000; // 60 seconds
const todayDate = new Date();
const today = new Date(
Date.UTC(todayDate.getFullYear(), todayDate.getMonth(), todayDate.getDate())