Skip to content

Instantly share code, notes, and snippets.

@haganbt
Created March 29, 2012 00:37
Show Gist options
  • Save haganbt/2231867 to your computer and use it in GitHub Desktop.
Save haganbt/2231867 to your computer and use it in GitHub Desktop.
DataSift Interaction with Socket.io
consumer.on("interaction", function(obj) {
if(obj.data !== undefined) {
//console.log(obj.data);
io.sockets.emit('data', {
source : obj.data
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment