'Microsoft SignalIR Disconnection Problems When Window or Tab Is Inactive

I have a system using Signal IR, which receives messages to update data in real time. But when I change the tab or window, the connection is broken. I need the connection to persist when the tab or window is not active. How can I maintain connection when I change tab or window?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source