Ignoring a client when broadcasting a message with SignalR

折月煮酒 提交于 2019-12-06 10:24:27

There is a specific property that allows this particular exception,

hubContext.Clients.Others.YourMethodHere

You can see it used here.

Edit: As per the discussion in the comments, Others is not available when using GlobalHost.ConnectionManager.GetHubContext<T>

You will either need to continue using your current method or find a way to delegate this activity to the BroadcastHub to have access to Others.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!