web/res/js-tweetcast/connect-nodejs.js
changeset 420 eb7c2cff1816
parent 419 ad151a86046f
child 421 c8db83b70def
--- a/web/res/js-tweetcast/connect-nodejs.js	Fri Dec 16 10:39:51 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-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);
-    });
-}
\ No newline at end of file