hij1nx/liveswap — pull request #17 by ralphtheninja (2014-07-25 09:47:15+00:00)
Title: misc fixes

- removes a global
- node style callback
- return stream so users of client can `end()` the connection:

```js
var stream = client.upgrade({
port: port,
host: host
}, function (err, data) {
console.log(err, data)
stream.end()
})
```