Skip to content

Instantly share code, notes, and snippets.

@dergraf
Created May 11, 2012 12:48
Show Gist options
  • Save dergraf/2659414 to your computer and use it in GitHub Desktop.
Save dergraf/2659414 to your computer and use it in GitHub Desktop.
Simple tambur usage
var connection = new tambur.Connection(MY_API_KEY, MY_APP_ID);
connection.ready = function() {
var stream = connection.get_stream("mystream");
stream.onmessage = function(msg) {
/* do something fancy with the msg */
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment