LearnBoost/socket.io-client — Issue #337: Cannot call method 'packet' of null
Author: kitek
Created: 2011-11-10 14:48:31+00:00
State: open

Hi, when socket.io-client call event connect_failed I got error:

TypeError: Cannot call method 'packet' of null
at Socket.packet (/opt/node-0.4.12/lib/node/socket.io-client/lib/socket.js:272:22)
at SocketNamespace.packet (/opt/node-0.4.12/lib/node/socket.io-client/lib/namespace.js:64:17)
at SocketNamespace.emit (/opt/node-0.4.12/lib/node/socket.io-client/lib/namespace.js:113:17)
at SocketNamespace. (/home/node/test.js:104:10)
at SocketNamespace.$emit (/opt/node-0.4.12/lib/node/socket.io-client/lib/events.js:167:15)
at SocketNamespace.onPacket (/opt/node-0.4.12/lib/node/socket.io-client/lib/namespace.js:152:14)
at Socket.onPacket (/opt/node-0.4.12/lib/node/socket.io-client/lib/socket.js:397:30)
at Transport.onPacket (/opt/node-0.4.12/lib/node/socket.io-client/lib/transport.js:81:17)
at Transport.onData (/opt/node-0.4.12/lib/node/socket.io-client/lib/transport.js:58:16)
at [object Object].stateChange (/opt/node-0.4.12/lib/node/socket.io-client/lib/transports/xhr-polling.js:81:16)