LearnBoost/socket.io — Issue #623: Cannot call method 'writeHead' of undefined
Author: level09
Created: 2011-11-04 09:26:43+00:00
State: open

```
/home/realtime/node_modules/socket.io/lib/transports/jsonp-polling.js:87
this.response.writeHead(200, {
^
TypeError: Cannot call method 'writeHead' of undefined
at JSONPPolling.doWrite (/home/realtime/node_modules/socket.io/lib/transports/jsonp-polling.js:87:17)
at JSONPPolling.write (/home/realtime/node_modules/socket.io/lib/transports/http-polling.js:120:8)
at JSONPPolling.packet (/home/realtime/node_modules/socket.io/lib/transport.js:515:15)
at JSONPPolling.error (/home/realtime/node_modules/socket.io/lib/transport.js:498:8)
at JSONPPolling.onData (/home/realtime/node_modules/socket.io/lib/transports/jsonp-polling.js:68:10)
at IncomingMessage. (/home/realtime/node_modules/socket.io/lib/transports/http.js:60:12)
at IncomingMessage.emit (events.js:61:17)
at HTTPParser.onMessageComplete (http.js:133:23)
at Socket.ondata (http.js:1029:22)
at Socket._onReadable (net.js:683:27)
```