Last post May 02, 2018 03:02 AM by Fei Han - MSFT
May 01, 2018 05:56 PM|rezord___|LINK
I am using SignalR in my angular5 website for presenting lock for documents. I am storing hub connection in data service and soon ad user logged in, I will start the connection. In each component which I need hub connection, I have an Observable and
after the connection established, It listens to the hub. Everything is working properly. But after refreshing page, it will not show the result of SignalR command. If I click on that page then it will show the result of SignalR!
May 02, 2018 03:02 AM|Fei Han - MSFT|LINK
after refreshing page, it will not show the result of SignalR command. If I click on that page then it will show the result of SignalR!
When you navigates to a new page or refreshes the page, the SignalR connection immediately ends. If your client does not establish a new connection and no messages/data are pushed from your hub server to your client, you will not see the result of SignalR