SignalR - Broadcast to all clients except Caller

2019-04-29 09:16发布

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

标签: signalr
2条回答
再贱就再见
2楼-- · 2019-04-29 09:57

In 2014 you can select clients with Hubs.

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

Clients.Others.addContosoChatMessageToPage(name, message);
查看更多
淡お忘
3楼-- · 2019-04-29 09:58

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

查看更多
登录 后发表回答