Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Corbin Hoenes
RE: events (init, enter, leave) [ reply ]  
2008-05-07 03:57
It appears there is something called observers that hangs off of the shooter which allows you to observe events from the server.

Meteor.shooter.observers. There is also an example in the svn repos but I cannot get it to quite work yet. I think it has something with the Drb not locating the model that I am calling inside my observer. Does anyone have any experience with this?


By: Corbin Hoenes
events (init, enter, leave) [ reply ]  
2008-05-04 05:39
I am not sure if there is an event that can notify an action when someone disconnected from shooting_star?

The leave event only seems to notify other client's that a user has disconnected. If only one person is connected the event doesn't ever fire.

The reason is I need to cleanup some state held in the database (e.g. a user is logged in). When they disconnect I want to change that state on the server.