Created
November 15, 2014 04:55
-
-
Save lastlegion/257b043ba5f5900cecf9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
io.on("connection", function (socket){ | |
t.on("tweet", function(tweet){ | |
var tweetText = tweet.text; | |
var score = s.score(tweetText); | |
socket.emit("tweet", {tweet: tweetText, score:score}) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment