SignalR - Broadcast to all clients except Caller

大城市里の小女人 提交于 2019-12-07 06:44:55

问题


Is there a way to send a message to all connected clients except the client that is sending the message.


回答1:


In 2014 you can select clients with Hubs.

The Others property publishes to all clients except the calling client.

Clients.Others.addContosoChatMessageToPage(name, message);



回答2:


Not yet, the only thing you can do today is filter on the client side.



来源:https://stackoverflow.com/questions/11155008/signalr-broadcast-to-all-clients-except-caller

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