The idea is to keep the user logged in to Chat as he browses the pages.
Layout of components on the page
-
Layout.cshtml
function iniciarChat() { var chatHub = $.connection.chat; $.connection.hub.start(); }
-
Index.cshtml
iniciarChat();
Today the structure is like this. But when the user clicks on a link that does a PostBack, it is disconnected from Chat . And when it returns to Index.cshtml, it reconnects to Chat again.
I would like to know if you have any way to keep the user logged in to Chat even though he does a PostBack.