【发布时间】:2018-10-17 09:01:23
【问题描述】:
如何获取特定 SignalR Core 组中的连接数?
类似的东西:
this.Clients.Group("Something").Count();
如果SendAsync 能返回多少个客户端发送消息也很好:
var count = await this.Clients.Client(this.Context.ConnectionId).SendAsync("msg", msg);
我需要这个来确定组是否为空。如果用户强行断开 SignalR Core 的连接(拔下网线),数据应该是正确的...
【问题讨论】:
标签: signalr asp.net-core-signalr