josephg/ShareJS — Issue #40: Crash!
Author: josephg
Created: 2011-10-20 10:07:25+00:00
State: open

```
DEBUG: Error: msg.doc missing. Probably the client reconnected without telling us - this is a socket.io bug.
at Socket. (/home/josephg/src/ShareJS/src/server/socketio.coffee:297:21)
at Socket.$emit (events.js:64:17)
at SocketNamespace.handlePacket (/home/josephg/src/ShareJS/node_modules/socket.io/lib/namespace.js:348:20)
at Manager.onClientMessage (/home/josephg/src/ShareJS/node_modules/socket.io/lib/manager.js:436:38)
at WebSocket.onMessage (/home/josephg/src/ShareJS/node_modules/socket.io/lib/transport.js:387:20)
at Parser. (/home/josephg/src/ShareJS/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:38:10)
at Parser.emit (events.js:64:17)
at /home/josephg/src/ShareJS/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:209:16
at Parser.expectHandler (/home/josephg/src/ShareJS/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:220:15)
at Parser.add (/home/josephg/src/ShareJS/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:338:24)

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'listener' of undefined
at /home/josephg/src/ShareJS/src/server/socketio.coffee:51:30
at /home/josephg/src/ShareJS/src/server/socketio.coffee:178:18
at /home/josephg/src/ShareJS/src/server/socketio.coffee:167:18
at /home/josephg/src/ShareJS/src/server/socketio.coffee:140:20
at /home/josephg/src/ShareJS/src/server/socketio.coffee:200:22
at /home/josephg/src/ShareJS/src/server/model.coffee:35:18
at Command.callback (/home/josephg/src/ShareJS/src/server/db/redis.coffee:121:18)
at RedisClient.return_reply (/home/josephg/src/ShareJS/node_modules/redis/index.js:425:29)
at RedisReplyParser. (/home/josephg/src/ShareJS/node_modules/redis/index.js:81:14)
at RedisReplyParser.emit (events.js:64:17)
```