From 698601b8557f60eed825d61f4d48a5e63e5cde2e Mon Sep 17 00:00:00 2001 From: Augustus D'Souza Date: Sat, 16 Aug 2014 01:00:22 +0530 Subject: [PATCH] Modified deprecated function call --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index dfc846b..264d2f6 100644 --- a/server.js +++ b/server.js @@ -25,7 +25,7 @@ app.use("/images", express.static(__dirname + '/public/images')); // when a client makes a request to the app root // (http://localhost:8080/) app.get('/', function (req, res) { - res.sendfile(__dirname + '/public/index.html'); + res.sendFile(__dirname + '/public/index.html'); }); // sets the log level of socket.io, with @@ -237,4 +237,4 @@ function generateId(){ } // show a message in console -console.log('Chat server is running and listening to port %d...', port); \ No newline at end of file +console.log('Chat server is running and listening to port %d...', port);