Closed Manojkumar226 closed 2 months ago
Hi @Manojkumar226, currently serverless mode doesn't have such feature. The feature request is put to our backlog.
@Y-Sindo Thank you for the response.
Also, some browser tab will go into sleep if there are not active (ex: google chrome). In that case how can we ensure the connection with signalR automatically when the browser tab is get back to active.
Do you have any suggestions for the above query?
Also, some browser tab will go into sleep if there are not active (ex: google chrome). In that case how can we ensure the connection with signalR automatically when the browser tab is get back to active.
This is related to SignalR library, please open a separate issue in https://github.com/dotnet/aspnetcore/
Describe the bug
Context: We are using a
serverless azure signalR
service at the backend(python) and at client side we are using the@microsoft/signalR
library for the react application. Below is the code included in the client side. Initally when the app gets loaded the signalR connection is established successfully. when a accesstoken is expired in background, theonClose
call back is not triggered where we are trying to fetch the new access token and start the connection automatically.Expected Behavior
We are looking for reconnection of signalR when the connection is closed due to expiry of the access token. Also,in the documentation we see option called
CloseOnAuthenticationExpiration
. So, how this can be configured to theserverless azure signal-r
? Ref: https://learn.microsoft.com/en-us/aspnet/core/signalr/configuration?view=aspnetcore-8.0&tabs=dotnet#advanced-http-configuration-optionsAlso, some browser tab will go into sleep if there are not active (ex: google chrome). In that case how can we ensure the connection with signalR automatically when the browser tab is get back to active.
Version
"@microsoft/signalr": "8.0.0"