codeminders / socket.io-server-java

Java Backend for Socket.IO (http://socket.io/)
36 stars 18 forks source link

Add getSockets to Namespace and Room #7

Closed joeferner closed 6 years ago

joeferner commented 6 years ago

Adding getters for sockets allows iteration of connected sockets and selectively send messages to those sockets.

I have some security requirements that I only send message to specific users based on their properties. Similar to this question asked here. This PR allows me to get at the list of currently connected clients so that I can pick and choose which ones to send to.