Last Updated: February 25, 2016
·
1.546K
· ingarko

SignalR Calls

// Call send on everyone
Clients.All.send(message);

// Call send on everyone except the caller
Clients.Others.send(message);

// Call send on everyone except the specified connection ids
Clients.AllExcept(Context.ConnectionId).send(message);

// Call send on the caller
Clients.Caller.send(message);

// Call send on everyone in group "foo"
Clients.Group("foo").send(message);

// Call send on everyone else but the caller in group "foo"
Clients.OthersInGroup("foo").send(message);

// Call send on everyone in "foo" excluding the specified connection ids
Clients.Group("foo", Context.ConnectionId).send(message);

// Call send on to a specific connection
Clients.Client(Context.ConnectionId).send(message);