remove connect export in favor of single function

Since connect was the only function exported, we can just export the
function directly to make things simpler.
This commit is contained in:
Roman Shtylman
2014-02-13 23:51:29 -05:00
parent d9bc11b520
commit fbfc923a7e
3 changed files with 8 additions and 6 deletions

View File

@@ -31,9 +31,11 @@ The localtunnel client is also usable through an API (for test integration, auto
```javascript
var localtunnel = require('localtunnel');
var client = localtunnel.connect({
// the localtunnel server
host: 'http://localtunnel.me',
var client = localtunnel({
// the localtunnel server to proxy through
// default is localtunnel.me
//host: 'http://localtunnel.me',
// your local application port
port: 12345
});