Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138163

How to reuse SignalR v2.2 connections within an asp.net session

$
0
0

I am using javascript to create a SignalR connection on page load in my MasterPage. Unfortunately, whenever changing pages the connection is closed and a new connection is established.

I would now like to either "persist" this specific connection between several pages in my Webforms based website or re-use the connectionId so that the hub will "reconnect" the original connection. Better still, don't have the connection lost until the session ends.

I've search here as well as the wider net without successfully discovering a simple way of doing this.


Viewing all articles
Browse latest Browse all 138163

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>