Browse Source

getAllClients method added. Issue #21

master
Nikita 13 years ago
parent
commit
f6d7b2427c
  1. 9
      src/main/java/com/corundumstudio/socketio/SocketIOServer.java

9
src/main/java/com/corundumstudio/socketio/SocketIOServer.java

@ -56,6 +56,15 @@ public class SocketIOServer implements ClientListeners {
this.pipelineFactory = pipelineFactory;
}
/**
* Get all clients
*
* @return Iterable object with clients
*/
public Iterable<SocketIOClient> getAllClients() {
return pipelineFactory.getAllClients();
}
public ClientOperations getBroadcastOperations() {
return new BroadcastOperations(pipelineFactory.getAllClients());
}

Loading…
Cancel
Save