AspNet core 2.1 SignalR Angular 7












0















I want to add a comment to a specific user and, if that user at the moment online,then that user to show a notification regarding to that comment.
And later I want to add messaging system too.



I followed many articles, they are using @aspnet/signalr-client package in angular app.But I can't install it and occurs this error



This package has been deprecated. Use '@aspnet/signalr' instead.


I wasted much time for this problem.
Can you please give me an article or any other code related to this problem.
What I want to know is,



How to connect user with server and connected users between communication.then




  1. When user log into system after that user's friends to indicate
    current user in their friends list.


  2. If that user logout / disconnect then also that users friends to
    indicate it.


  3. If a specific user to add comment then that user online at that
    moment,that user to see is it as a notification


3rd one is very important.If someone can give a piece of code for this,very helpful to me










share|improve this question



























    0















    I want to add a comment to a specific user and, if that user at the moment online,then that user to show a notification regarding to that comment.
    And later I want to add messaging system too.



    I followed many articles, they are using @aspnet/signalr-client package in angular app.But I can't install it and occurs this error



    This package has been deprecated. Use '@aspnet/signalr' instead.


    I wasted much time for this problem.
    Can you please give me an article or any other code related to this problem.
    What I want to know is,



    How to connect user with server and connected users between communication.then




    1. When user log into system after that user's friends to indicate
      current user in their friends list.


    2. If that user logout / disconnect then also that users friends to
      indicate it.


    3. If a specific user to add comment then that user online at that
      moment,that user to see is it as a notification


    3rd one is very important.If someone can give a piece of code for this,very helpful to me










    share|improve this question

























      0












      0








      0








      I want to add a comment to a specific user and, if that user at the moment online,then that user to show a notification regarding to that comment.
      And later I want to add messaging system too.



      I followed many articles, they are using @aspnet/signalr-client package in angular app.But I can't install it and occurs this error



      This package has been deprecated. Use '@aspnet/signalr' instead.


      I wasted much time for this problem.
      Can you please give me an article or any other code related to this problem.
      What I want to know is,



      How to connect user with server and connected users between communication.then




      1. When user log into system after that user's friends to indicate
        current user in their friends list.


      2. If that user logout / disconnect then also that users friends to
        indicate it.


      3. If a specific user to add comment then that user online at that
        moment,that user to see is it as a notification


      3rd one is very important.If someone can give a piece of code for this,very helpful to me










      share|improve this question














      I want to add a comment to a specific user and, if that user at the moment online,then that user to show a notification regarding to that comment.
      And later I want to add messaging system too.



      I followed many articles, they are using @aspnet/signalr-client package in angular app.But I can't install it and occurs this error



      This package has been deprecated. Use '@aspnet/signalr' instead.


      I wasted much time for this problem.
      Can you please give me an article or any other code related to this problem.
      What I want to know is,



      How to connect user with server and connected users between communication.then




      1. When user log into system after that user's friends to indicate
        current user in their friends list.


      2. If that user logout / disconnect then also that users friends to
        indicate it.


      3. If a specific user to add comment then that user online at that
        moment,that user to see is it as a notification


      3rd one is very important.If someone can give a piece of code for this,very helpful to me







      asp.net-core signalr angular7






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 29 '18 at 13:06









      SupunAravindaSupunAravinda

      188




      188
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You need to use @aspnet/signalr package which is stated in GitHub Repository of AspNetCore



          Here is Samples which you can take a look.



          For basic tutorial (simply how to start): Reference






          share|improve this answer
























          • Thanks alot Simonare,I followed these samples earlier.These samples doesn't contain web client parts and the basic tutorial does not contains some parts.Actually I'm a beginner to SignalR.This is my first time using this.However I think something can do using your basic tutorial.I'll give you an update.thanks again :)

            – SupunAravinda
            Dec 29 '18 at 13:56











          • I tried this,now problem is,I want to send a message a particular user. I tried to get user name using Context.User.Identity.Name inside OnConnectedAsync method.but I couldn't get username,it shown as null value

            – SupunAravinda
            Dec 29 '18 at 17:55











          • check This

            – Simonare
            Dec 29 '18 at 19:45













          • I want to do connection establishment when login,now it's doing separately.first login to system with another service and return token,after that SignalR will connect.

            – SupunAravinda
            Dec 30 '18 at 4:02













          • I opened another question too stackoverflow.com/questions/53975313/…

            – SupunAravinda
            Dec 30 '18 at 4:36











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53969813%2faspnet-core-2-1-signalr-angular-7%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You need to use @aspnet/signalr package which is stated in GitHub Repository of AspNetCore



          Here is Samples which you can take a look.



          For basic tutorial (simply how to start): Reference






          share|improve this answer
























          • Thanks alot Simonare,I followed these samples earlier.These samples doesn't contain web client parts and the basic tutorial does not contains some parts.Actually I'm a beginner to SignalR.This is my first time using this.However I think something can do using your basic tutorial.I'll give you an update.thanks again :)

            – SupunAravinda
            Dec 29 '18 at 13:56











          • I tried this,now problem is,I want to send a message a particular user. I tried to get user name using Context.User.Identity.Name inside OnConnectedAsync method.but I couldn't get username,it shown as null value

            – SupunAravinda
            Dec 29 '18 at 17:55











          • check This

            – Simonare
            Dec 29 '18 at 19:45













          • I want to do connection establishment when login,now it's doing separately.first login to system with another service and return token,after that SignalR will connect.

            – SupunAravinda
            Dec 30 '18 at 4:02













          • I opened another question too stackoverflow.com/questions/53975313/…

            – SupunAravinda
            Dec 30 '18 at 4:36
















          0














          You need to use @aspnet/signalr package which is stated in GitHub Repository of AspNetCore



          Here is Samples which you can take a look.



          For basic tutorial (simply how to start): Reference






          share|improve this answer
























          • Thanks alot Simonare,I followed these samples earlier.These samples doesn't contain web client parts and the basic tutorial does not contains some parts.Actually I'm a beginner to SignalR.This is my first time using this.However I think something can do using your basic tutorial.I'll give you an update.thanks again :)

            – SupunAravinda
            Dec 29 '18 at 13:56











          • I tried this,now problem is,I want to send a message a particular user. I tried to get user name using Context.User.Identity.Name inside OnConnectedAsync method.but I couldn't get username,it shown as null value

            – SupunAravinda
            Dec 29 '18 at 17:55











          • check This

            – Simonare
            Dec 29 '18 at 19:45













          • I want to do connection establishment when login,now it's doing separately.first login to system with another service and return token,after that SignalR will connect.

            – SupunAravinda
            Dec 30 '18 at 4:02













          • I opened another question too stackoverflow.com/questions/53975313/…

            – SupunAravinda
            Dec 30 '18 at 4:36














          0












          0








          0







          You need to use @aspnet/signalr package which is stated in GitHub Repository of AspNetCore



          Here is Samples which you can take a look.



          For basic tutorial (simply how to start): Reference






          share|improve this answer













          You need to use @aspnet/signalr package which is stated in GitHub Repository of AspNetCore



          Here is Samples which you can take a look.



          For basic tutorial (simply how to start): Reference







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 29 '18 at 13:26









          SimonareSimonare

          8,95211637




          8,95211637













          • Thanks alot Simonare,I followed these samples earlier.These samples doesn't contain web client parts and the basic tutorial does not contains some parts.Actually I'm a beginner to SignalR.This is my first time using this.However I think something can do using your basic tutorial.I'll give you an update.thanks again :)

            – SupunAravinda
            Dec 29 '18 at 13:56











          • I tried this,now problem is,I want to send a message a particular user. I tried to get user name using Context.User.Identity.Name inside OnConnectedAsync method.but I couldn't get username,it shown as null value

            – SupunAravinda
            Dec 29 '18 at 17:55











          • check This

            – Simonare
            Dec 29 '18 at 19:45













          • I want to do connection establishment when login,now it's doing separately.first login to system with another service and return token,after that SignalR will connect.

            – SupunAravinda
            Dec 30 '18 at 4:02













          • I opened another question too stackoverflow.com/questions/53975313/…

            – SupunAravinda
            Dec 30 '18 at 4:36



















          • Thanks alot Simonare,I followed these samples earlier.These samples doesn't contain web client parts and the basic tutorial does not contains some parts.Actually I'm a beginner to SignalR.This is my first time using this.However I think something can do using your basic tutorial.I'll give you an update.thanks again :)

            – SupunAravinda
            Dec 29 '18 at 13:56











          • I tried this,now problem is,I want to send a message a particular user. I tried to get user name using Context.User.Identity.Name inside OnConnectedAsync method.but I couldn't get username,it shown as null value

            – SupunAravinda
            Dec 29 '18 at 17:55











          • check This

            – Simonare
            Dec 29 '18 at 19:45













          • I want to do connection establishment when login,now it's doing separately.first login to system with another service and return token,after that SignalR will connect.

            – SupunAravinda
            Dec 30 '18 at 4:02













          • I opened another question too stackoverflow.com/questions/53975313/…

            – SupunAravinda
            Dec 30 '18 at 4:36

















          Thanks alot Simonare,I followed these samples earlier.These samples doesn't contain web client parts and the basic tutorial does not contains some parts.Actually I'm a beginner to SignalR.This is my first time using this.However I think something can do using your basic tutorial.I'll give you an update.thanks again :)

          – SupunAravinda
          Dec 29 '18 at 13:56





          Thanks alot Simonare,I followed these samples earlier.These samples doesn't contain web client parts and the basic tutorial does not contains some parts.Actually I'm a beginner to SignalR.This is my first time using this.However I think something can do using your basic tutorial.I'll give you an update.thanks again :)

          – SupunAravinda
          Dec 29 '18 at 13:56













          I tried this,now problem is,I want to send a message a particular user. I tried to get user name using Context.User.Identity.Name inside OnConnectedAsync method.but I couldn't get username,it shown as null value

          – SupunAravinda
          Dec 29 '18 at 17:55





          I tried this,now problem is,I want to send a message a particular user. I tried to get user name using Context.User.Identity.Name inside OnConnectedAsync method.but I couldn't get username,it shown as null value

          – SupunAravinda
          Dec 29 '18 at 17:55













          check This

          – Simonare
          Dec 29 '18 at 19:45







          check This

          – Simonare
          Dec 29 '18 at 19:45















          I want to do connection establishment when login,now it's doing separately.first login to system with another service and return token,after that SignalR will connect.

          – SupunAravinda
          Dec 30 '18 at 4:02







          I want to do connection establishment when login,now it's doing separately.first login to system with another service and return token,after that SignalR will connect.

          – SupunAravinda
          Dec 30 '18 at 4:02















          I opened another question too stackoverflow.com/questions/53975313/…

          – SupunAravinda
          Dec 30 '18 at 4:36





          I opened another question too stackoverflow.com/questions/53975313/…

          – SupunAravinda
          Dec 30 '18 at 4:36


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53969813%2faspnet-core-2-1-signalr-angular-7%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Monofisismo

          compose and upload a new article using a custom form

          How to correct the classpath of spring boot application so that it contains a single, compatible version of...