[英]Chat one to one using asp.net core SignalR and angular 2
Create groups创建组
Add a client to a group:将客户端添加到组:
Groups.AddAsync("YourGroupId", Context.ConnectionId);
Remove client from group:从组中删除客户端:
Groups.RemoveAsync("YourGroupId", Context.ConnectionId);
Send message to a group:向群组发送消息:
Clients.Group("").MethodOnYourClient("");
Remark: I suggest you to read the tutorial: https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr备注:建议您阅读教程: https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr
I know it's not with asp.net core signalr, but the most of the stuff looks similar.我知道它不是 asp.net 核心 signalr,但大多数东西看起来都相似。 Maybe you have to show in intellisense which possibilities the existing classes have.
也许您必须在智能感知中显示现有类具有哪些可能性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.