Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR - Broadcast to all clients except Caller

Tags:

signalr

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

like image 687
Yavor Shahpasov Avatar asked Jun 22 '12 11:06

Yavor Shahpasov


People also ask

How do I send client specific messages using SignalR?

We change the BroadcastChartData() method to accept connectionId as an additional parameter. This way, we can find the client using the connectionId and send a message just to that client. Additionally, we add a new GetConnectionId() method, which returns the connectionId of the client.

How many clients can SignalR handle?

IIS on client operating systems has a limit of 10 concurrent connections. SignalR's connections are: Transient and frequently re-established. Not disposed immediately when no longer used.

Is SignalR full duplex?

SignalR supports full duplex communication that allows the client and server to transfer data back and forth.

Is SignalR bidirectional?

Description. The SignalR permits bidirectional communication between the server and client. Its availability helps the server to push the content to connected clients instantly.


1 Answers

In 2014 you can select clients with Hubs.

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

Clients.Others.addContosoChatMessageToPage(name, message);
like image 136
XenoPuTtSs Avatar answered Sep 28 '22 04:09

XenoPuTtSs