--- 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;