| author | Samuel Huron <samuel.huron@centrepompidou.fr> |
| Fri, 16 Dec 2011 10:39:51 +0100 | |
| changeset 419 | ad151a86046f |
| parent 406 | 86b62b98fea7 |
| permissions | -rw-r--r-- |
document.write('<script type="text/javascript" src="/socket.io/socket.io.js"><' + '/script>'); function connectTweets() { socket = io.connect('http://' + document.location.host ); socket.on("initial_data", function(data) { loadTweets(data.tweets) }); socket.on("update", function(data) { if (!twCx.tweets) { return; } loadTweets(data.new_tweets, true); }); }