-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Description
I've installed socket module - npm install socket.io
When I create server simple like this:
var io = require('socket.io').listen(process.env.C9_PORT);
When I got this exception:
debugger listening on port 5860
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object 20002 has no method 'listeners'
at new Manager (/mnt/ws/users/baio/52249/node_modules/socket.io/lib/manager.js:85:30)
at Object.listen (/mnt/ws/users/baio/52249/node_modules/socket.io/lib/socket.io.js:70:10)
at Object. (/mnt/ws/users/baio/52249/websocket.server.js:1:93)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array. (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)