mscdex/node-oscar — pull request #5 by seanmcgary (2011-12-19 19:44:50+00:00)
Title: TypeError: Cannot set property 'id' of undefined

```
node-oscar/oscar.js:849
self._state.connections[id].id = id;
^
TypeError: Cannot set property 'id' of undefined
```

This seems to be happening because line 848

```
self._state.connections[id] = net.createConnection(port, host);
```
Is returning 'undefined' meaning for some reason its not making the connection to the login server. I changed it to use a net.Socket connection instead and it seems to work. This is all under Node v0.6.5.