Socket.IO broadcast to specific number of clients

I don't know if its possible to achieve this or not, but I want to send a message to specific number of clients.

For e.g. Say I have 100 clients connected to my server. and I want to send a message in such a way that only 10 (should be able to specify in the message) out of 100 clients should receive the message and don't, or even discard it.

Just like the TTL value of a network packet.

Thanks

Use rooms for that. When a client connect join him into a room. Then you can emit to that room.

See this link for details: https://github.com/LearnBoost/socket.io/wiki/Rooms