Skip to content

Instantly share code, notes, and snippets.

@lemesdaniel
Created August 11, 2015 22:42
Show Gist options
  • Save lemesdaniel/0008a422d44a3cd14110 to your computer and use it in GitHub Desktop.
Save lemesdaniel/0008a422d44a3cd14110 to your computer and use it in GitHub Desktop.
var client = new Faye.Client('http://9b1cf4d8.fanoutcdn.com/bayeux');
client.subscribe('/test', function (item) {
app.posts.push({ title: item.data.message })
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment