tweetcast/nodejs/client/js/script.js
changeset 334 b7f05d66b620
parent 333 4389fd4ae58f
child 335 5f83c21dee69
--- a/tweetcast/nodejs/client/js/script.js	Tue Oct 25 09:20:07 2011 +0200
+++ b/tweetcast/nodejs/client/js/script.js	Tue Oct 25 09:36:21 2011 +0200
@@ -273,7 +273,7 @@
 $(document).ready(function() {
     tlPaper = Raphael("timeline", 220, 600);
     twPaper = Raphael("timewindow", 220, 600);
-    socket = io.connect('http://' + S_IO_HOST + ':' + S_IO_PORT );
+    socket = io.connect('http://' + document.location.hostname );
     socket.on('tweetSummary', function (data) {
         if (tweetData.tweetcount != data.tweetcount) {
             tweetData.tweetcount = data.tweetcount;