Ellery Familia
Ellery Familia

Reputation: 539

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

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!

Upvotes: 12

Views: 4274

Answers (2)

Ruchira
Ruchira

Reputation: 962

You can use Clients.OthersInGroup() method.

Upvotes: 15

cecilphillip
cecilphillip

Reputation: 11586

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.

Upvotes: 3

Related Questions