Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send a message to all clients in a Group, except for the current client

Tags:

signalr

I want to execute a method on all connected clients from the server, except for the current client. Any way to do this without me maintaining my own list of clientids?

TIA!

like image 207
Ellery Familia Avatar asked Apr 13 '12 19:04

Ellery Familia


2 Answers

You can use Clients.OthersInGroup() method.

like image 195
Ruchira Avatar answered Nov 17 '22 06:11

Ruchira


This functionality has been proposed and discussed on the github issues list for the project, but is not yet implemented http://goo.gl/pyMwF.

For now, you will need to do your own filtering of your clients.

like image 3
cecilphillip Avatar answered Nov 17 '22 04:11

cecilphillip