| author | Raphael Velt <raph.velt@gmail.com> |
| Mon, 05 Mar 2012 18:41:11 +0100 | |
| changeset 534 | 0a2505c3b547 |
| parent 404 | 89968844eb7d |
| 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); }); }