Sometimes SignalR is not working properly

Suresh Raji 0 Reputation points
2024-02-27T11:51:18.9533333+00:00

Dear Team, In my application, we have used ASP .Net web application as a server and Javascript as a client Side. we have to use signalr notification with various usecases like message nofication, active users notification and logout notification. We have implemented these usecases using azure singalr. Event has been subscribed in server side and signalr handler in javascript side. Problem is sometimes message notification and active users update and logout nofication are not working. For example: If user1 logged in into application, admin cannot see user1 as active users. More case: if user1 send message to user2, user2 didnt receive any nofication.
Please help on this. Thanks..

Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
147 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,586 Reputation points Microsoft Employee
    2024-02-29T02:44:17.47+00:00

    @Suresh Raji Have you checked the logs to see if there are any errors or warnings related to SignalR? If not, I recommend enabling diagnostic logging for Azure SignalR Service and checking the logs to see if there are any errors or warnings related to SignalR. You can follow the steps in this document to enable diagnostic logging.

    If there are no errors or warnings related to SignalR in the logs, then it's possible that the issue is related to the implementation of SignalR in your application. Have you checked the code to see if there are any issues with the implementation? For example, are the events being subscribed to correctly on the server side? Is the SignalR handler being implemented correctly on the client side?

    If you're still having trouble after checking the logs and the code, please provide me with more information about your application and the specific use cases you're trying to implement. This will help me better understand the issue and provide more targeted assistance.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.