# HG changeset patch # User Raphael Velt # Date 1319528181 -7200 # Node ID b7f05d66b6203cbcc80711a2c22f566774ff7502 # Parent 4389fd4ae58fe3be33ad0732756453934705131f Minor changes diff -r 4389fd4ae58f -r b7f05d66b620 tweetcast/nodejs/client/index.html --- a/tweetcast/nodejs/client/index.html Tue Oct 25 09:20:07 2011 +0200 +++ b/tweetcast/nodejs/client/index.html Tue Oct 25 09:36:21 2011 +0200 @@ -4,11 +4,7 @@ Polemic Tweet “TweetCast” - + diff -r 4389fd4ae58f -r b7f05d66b620 tweetcast/nodejs/client/js/script.js --- 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; diff -r 4389fd4ae58f -r b7f05d66b620 tweetcast/nodejs/node-direct.js --- a/tweetcast/nodejs/node-direct.js Tue Oct 25 09:20:07 2011 +0200 +++ b/tweetcast/nodejs/node-direct.js Tue Oct 25 09:36:21 2011 +0200 @@ -167,9 +167,11 @@ } function httpHandler(req, res) { + console.log("HTTP Request for URL "+req.url); var url = req.url + ( req.url[req.url.length - 1] == "/" ? "index.html" : "" ); fs.readFile(__dirname + "/client" + url, function(err, data) { if (err) { + console.log("Error 404"); res.writeHead(404); return res.end('File not found'); }