Skip to content

Commit

Permalink
Edited doc/public/user_manual.md via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Dshankar committed May 17, 2011
1 parent 4542fce commit 2879dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/public/user_manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ You can also add your own properties to `this.user` (for example, `this.user.log
###Client connected/disconnected events on the server
NowJS allows you to specify a callback to be fired when a client connects or disconnects on the server. To set a listener for the events, do the following:

everyone.connected(function(){});
everyone.disconnected(function(){});
everyone.on('connect', function(){});
everyone.on('disconnect', function(){});

The callbacks are run in the context `this.now` and `this.user`. This makes it easy to access information about that client for setup or setdown procedures.

Expand Down

0 comments on commit 2879dfe

Please sign in to comment.