Permalink
Browse files

Merge pull request #1 from sliver/master.

It can't run with the express ver 2.3.3. I fix it
  • Loading branch information...
2 parents 69582ba + ca9f300 commit 2f3aea7a4f48bab09570190b6bdfc2edfa42086a @gflarity committed May 4, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 heat_tracer.js
  2. +2 −2 public/heat_tracer.html
  3. +1 −1 public/heat_tracer_client.js
View
@@ -7,7 +7,7 @@ var express = require('express');
*/
var app = express.createServer();
app.configure(function(){
- app.use(express.staticProvider(__dirname + '/public'));
+ app.use(express.static(__dirname + '/public'));
});
@@ -80,6 +80,6 @@ websocket_server.on('connection', function(socket) {
} );
-app.listen(80);
+app.listen(8000);
View
@@ -1,7 +1,7 @@
<html>
<head>
-<script src="http://localhost/socket.io/socket.io.js"></script>
-<script src="http://localhost/heat_tracer_client.js"></script>
+<script src="socket.io/socket.io.js"></script>
+<script src="heat_tracer_client.js"></script>
</head>
<body onLoad='heat_tracer()'>
<canvas id='canvas' width='1024' height='512'></canvas>
@@ -5,7 +5,7 @@ function heat_tracer() {
//Global vars
setup();
- var socket = new io.Socket('localhost'); //connect to localhost presently
+ var socket = new io.Socket(); //connect to localhost presently
socket.connect();
socket.on('connect', function(){

0 comments on commit 2f3aea7

Please sign in to comment.