Description
I'm facing an issue maintaining a signalR connection using the @microsoft/signalr client package. After establishing a connection and 5 minutes of tab inactivity (user active in another tab or window), the connection gets closed. This seems to be related to recent policy changes in Chrome (JavaScript throttling) forcing WebSocket connection termination in 5 minutes of tab inactivity.
You can reproduce this issue using this serverless signalR sample at docs.microsoft.com
The only change that I did on the sample was to change the reference from @aspnet/signalr to @microsoft-signalR in the index.html file
<script src="https://cdn.jsdelivr.net/npm/@aspnet/[email protected]/dist/browser/signalr.js"></script>
Please see snip from my console below.