问题
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!
回答1:
You can use Clients.OthersInGroup() method.
回答2:
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.
来源:https://stackoverflow.com/questions/10146961/send-a-message-to-all-clients-in-a-group-except-for-the-current-client