Skip to content

Commit

Permalink
Removed external npm socket.io and now using local socket.io module
Browse files Browse the repository at this point in the history
  • Loading branch information
grant committed Feb 11, 2014
1 parent 9f8b1a2 commit 95d19e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/chat/app.js
Expand Up @@ -2,7 +2,7 @@
var express = require('express');
var app = express();
var server = require('http').createServer(app);
var io = require('socket.io').listen(server);
var io = require('../..').listen(server);
var port = 8000;

server.listen(port);
Expand Down Expand Up @@ -58,4 +58,4 @@ function getNumberOfUsersString () {
var numUsers = Object.keys(usernames).length;
var numUsersString = '<span class="log">(' + numUsers + ' ' + ((numUsers === 1) ? 'user' : 'users') + ' in chatroom)</span>';
return numUsersString;
}
}
3 changes: 1 addition & 2 deletions examples/chat/package.json
Expand Up @@ -16,7 +16,6 @@
"url": "https://github.com/grant/socket.io-chat/issues"
},
"dependencies": {
"express": "~3.4.8",
"socket.io": "~0.9.16"
"express": "~3.4.8"
}
}

0 comments on commit 95d19e2

Please sign in to comment.