Base solution for your next web application
Open Closed

RealTime Chat Notification using SignalR #10393


User avatar
0
mahendra created

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 10.3
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .Net Core

I have downloaded the version 10.3 and running successfully in localhost. I am unable to get the real time notification. Am I doing something wrong or missing some configuration.

Steps:

  1. Create a new tenant.
  2. Login as host in a browser (say chrome)
  3. Login to above created tenant (step 1) in a browser (say firefox)
  4. Import a new user in the tenant - Here am expecting a realtime notification to the host or to the tenant. But none are getting the notification untill the page is refreshed using F5.

Please advise if am doing something wrong.

Regards, Mahendra


7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mahendra

    Could you upgrade your Abp.* packages to 6.3.1 and try again ?

    Thanks,

  • User Avatar
    0
    mahendra created

    Hi @ismcagdas,

    I had downloaded the base product 10.3 (in which the Abp Version was 6.3), the Realtime notifcation (such as the status of user import) was not working. As per your suggestion, I updated the ABP package in all the projects of the above downloaded solution and now the real time notification (such as the status of user import) is working fine.

    But when I do the same in my project (which is verrsion 10.3) and Abp packageupgraded to version 6.3.1, the real time notification (such as the status of user import) is not working.....

    I mean while Realtime notification is now working on base product, it is not working in our project.

    Please advise what else can I check...

    Regards, Mahendra

  • User Avatar
    0
    mahendra created

    Hi @ismcagdas,

    It worked in my project as well.....Thanks....

    SignalR is being used for:

    1. Realtime Notification
    2. Chat

    In the app.cpmponent.ts file in the following code block If I comment this._chatSignalrService.init(); then my real time notification also stops working.. `if (this.appSession.application) { SignalRHelper.initSignalR(() => {

                //this._chatSignalrService.init(); 
            });
        }`
        
    

    All I wanted is, keep realtime notification but get rid of chat. Could you please help me how can I disable the chat feature completely while keeping the real time notification intact.

    Regards, Mahendra

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mahendra

    Do you see any error on the client side or server side when you enable this line ? I think the SignalR connection can't be created in that case.

  • User Avatar
    0
    mahendra created

    you are right. The signalR connection doesn't get created and hence the realtime notification also won't work.

    The question is how to disble the chat completely and not the realtime notification.

    Regards, Mahendra

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mahendra

    If SignalR is not connected, Notifications will not work as well. If you think, it will work if you disable Chat, you need to remove Chat related codes one by one. But, could you check if you have an client side error when you enable this line ?

  • User Avatar
    0
    mahendra created

    Noted....Thanks....

    No I am not getting any error when I enable this line...

    Regards, Mahendra