From 10a0c466bab6b9cd8a18189b47c9003df72e931b Mon Sep 17 00:00:00 2001 From: morrismatts Date: Fri, 24 Jan 2014 14:53:07 -0500 Subject: [PATCH] Tweak to server.js to fix #6 Needs to be server.listen instead of app.listen Fixes: https://github.com/sockjs/websocket-multiplex/issues/6 --- examples/sockjs-express3/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/sockjs-express3/server.js b/examples/sockjs-express3/server.js index 236015a..5e06ccd 100644 --- a/examples/sockjs-express3/server.js +++ b/examples/sockjs-express3/server.js @@ -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');