Skip to content

Instantly share code, notes, and snippets.

@yankov
Created August 15, 2011 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yankov/1147979 to your computer and use it in GitHub Desktop.
Save yankov/1147979 to your computer and use it in GitHub Desktop.
# On a back-end side
Comet.trigger("some_event", user, {:text => 'hello'})
#on a front-end side
Badgeville.bind('some_event', function(data) {
console.log("Event handler here");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment