List all connected clients / list of current ddp connections


#1

Is there a way to get a list of all connected clients / ddp connections?

There are a couple of things I’ve tried to manually keep track of connections, (using this.connection._id within methods, or Meteor.onConnection).

But the problem is that if I store those connection._id's manually - as in a collection - as soon as the server restarts all connected clients get a new connection._id.

thanks


#2

I would like to raise this question as well, any suggestions, guys? I have found this on atmosphere, see the code, it stores everything in a newly created collection. Right thing to do?