Cannot read property 'bind' of undefined
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