Basically, I am considering any method call (or publication) as signifying active-user status. My app has a high sub-rate (it’s very hard to move around without triggering subs for more fine-grained data).
I was gonna set ~
connections[this.connection.id] = Date.now() every time a method/pub is called.
Then, I can CRON job every minute to delete all connections which are not active within the past, say, 10 minutes.
Is there an easier way to do this?