locked
SignalR after page refresh doesn't work properly RRS feed

  • Question

  • User-1256369009 posted

    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!

    Tuesday, May 1, 2018 5:56 PM

All replies

  • User61956409 posted

    Hi rezord,

    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 command.

    With Regards,

    Fei Han

    Wednesday, May 2, 2018 3:02 AM