NodeChat

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit a6221a8dee6e6eecbd7cf9293bdfb4ad5add3a30
parent 1285dbae5edcef5ba87ce598608a997f5d717527
Author: Guillermo Rauch <rauchg@gmail.com>
Date:   Fri, 21 Nov 2014 02:46:19 +0100

use `sendFile`

Diffstat:
Mindex.js | 2+-
Mpackage.json | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js @@ -3,7 +3,7 @@ var http = require('http').Server(app); var io = require('socket.io')(http); app.get('/', function(req, res){ - res.sendfile(__dirname + '/index.html'); + res.sendFile(__dirname + '/index.html'); }); io.on('connection', function(socket){ diff --git a/package.json b/package.json @@ -3,7 +3,7 @@ "version": "0.0.1", "description": "my first socket.io app", "dependencies": { - "express": "4.3.1", + "express": "4.10.2", "socket.io": "1.2.0" } }