AspNet core 2.1 SignalR Angular 7
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
When user log into system after that user's friends to indicate
current user in their friends list.If that user logout / disconnect then also that users friends to
indicate it.- 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
add a comment |
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
When user log into system after that user's friends to indicate
current user in their friends list.If that user logout / disconnect then also that users friends to
indicate it.- 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
add a comment |
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
When user log into system after that user's friends to indicate
current user in their friends list.If that user logout / disconnect then also that users friends to
indicate it.- 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
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
When user log into system after that user's friends to indicate
current user in their friends list.If that user logout / disconnect then also that users friends to
indicate it.- 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
asp.net-core signalr angular7
asked Dec 29 '18 at 13:06
SupunAravindaSupunAravinda
188
188
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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