Skip to content

Commit

Permalink
Tweak to server.js to fix #6
Browse files Browse the repository at this point in the history
Needs to be server.listen instead of app.listen
Fixes: #6
  • Loading branch information
morrismatts committed Jan 24, 2014
1 parent 3e8ecdf commit 10a0c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/sockjs-express3/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var server = http.createServer(app);
service.installHandlers(server, {prefix:'/multiplex'});

console.log(' [*] Listening on 0.0.0.0:9999' );
app.listen(9999, '0.0.0.0');
server.listen(9999, '0.0.0.0');

app.get('/', function (req, res) {
res.sendfile(__dirname + '/index.html');
Expand Down

0 comments on commit 10a0c46

Please sign in to comment.