Skip to content

Commit

Permalink
Merge pull request #1 from sliver/master.
Browse files Browse the repository at this point in the history
It can't run with the express ver 2.3.3. I fix it
  • Loading branch information
gflarity committed May 4, 2011
2 parents 69582ba + ca9f300 commit 2f3aea7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions heat_tracer.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var express = require('express');
*/ */
var app = express.createServer(); var app = express.createServer();
app.configure(function(){ app.configure(function(){
app.use(express.staticProvider(__dirname + '/public')); app.use(express.static(__dirname + '/public'));
}); });




Expand Down Expand Up @@ -80,6 +80,6 @@ websocket_server.on('connection', function(socket) {
} ); } );




app.listen(80); app.listen(8000);




4 changes: 2 additions & 2 deletions public/heat_tracer.html
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
<html> <html>
<head> <head>
<script src="http://localhost/socket.io/socket.io.js"></script> <script src="socket.io/socket.io.js"></script>
<script src="http://localhost/heat_tracer_client.js"></script> <script src="heat_tracer_client.js"></script>
</head> </head>
<body onLoad='heat_tracer()'> <body onLoad='heat_tracer()'>
<canvas id='canvas' width='1024' height='512'></canvas> <canvas id='canvas' width='1024' height='512'></canvas>
Expand Down
2 changes: 1 addition & 1 deletion public/heat_tracer_client.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function heat_tracer() {
//Global vars //Global vars
setup(); setup();


var socket = new io.Socket('localhost'); //connect to localhost presently var socket = new io.Socket(); //connect to localhost presently
socket.connect(); socket.connect();


socket.on('connect', function(){ socket.on('connect', function(){
Expand Down

0 comments on commit 2f3aea7

Please sign in to comment.