Skip to content

Instantly share code, notes, and snippets.

@intinig
Created August 25, 2011 15:13
Show Gist options
  • Save intinig/1170886 to your computer and use it in GitHub Desktop.
Save intinig/1170886 to your computer and use it in GitHub Desktop.
;zappa.run(function () {
connect();
at({
welcome: function() {
alert('Welcome!');
return $('#player').html("Player: " + this.players);
}
});
at({
'player-limit': function() {
alert('I am sorry we reached the number of players');
return $('#player').html("Player: " + this.players);
}
});
return $().ready(function() {
return emit('join');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment