socket.io-redis-adapter icon indicating copy to clipboard operation
socket.io-redis-adapter copied to clipboard

Cannot read property 'bind' of undefined

Open cong88 opened this issue 10 years ago • 0 comments

I have crash error when refresh client: node v4.0, [email protected], [email protected].

/Volumes/working/ibooknail/api/node_modules/socket.io-redis/index.js:213 if (!rooms) return process.nextTick(fn.bind(null, null)); ^

TypeError: Cannot read property 'bind' of undefined at Redis.delAll (/Volumes/working/ibooknail/api/node_modules/socket.io-redis/index.js:213:43) at Socket.leaveAll (/Volumes/working/ibooknail/api/node_modules/socket.io/lib/socket.js:261:16) at Socket.onclose (/Volumes/working/ibooknail/api/node_modules/socket.io/lib/socket.js:412:8) at Client.onclose (/Volumes/working/ibooknail/api/node_modules/socket.io/lib/client.js:230:12) at emitTwo (events.js:92:20) at Socket.emit (events.js:172:7) at Socket.onClose (/Volumes/working/ibooknail/api/node_modules/engine.io/lib/socket.js:248:10) at WebSocket.g (events.js:260:16) at emitNone (events.js:67:13) at WebSocket.emit (events.js:166:7) at WebSocket.Transport.onClose (/Volumes/working/ibooknail/api/node_modules/engine.io/lib/transport.js:113:8) at WebSocket.g (events.js:260:16) at emitTwo (events.js:87:13) at WebSocket.emit (events.js:172:7) at WebSocket.cleanupWebsocketResources (/Volumes/working/ibooknail/api/node_modules/ws/lib/WebSocket.js:926:10) at emitNone (events.js:72:20) Program node app.js exited with code 1

cong88 avatar Dec 07 '15 10:12 cong88