mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-21 09:25:53 +00:00
fix README api example
This commit is contained in:
@@ -29,9 +29,9 @@ You can restart your local server all you want, ```lt``` is smart enough to dete
|
|||||||
The localtunnel client is also usable through an API (for test integration, automation, etc)
|
The localtunnel client is also usable through an API (for test integration, automation, etc)
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var lt_client = require('localtunnel').client;
|
var localtunnel = require('localtunnel');
|
||||||
|
|
||||||
var client = lt_client.connect({
|
var client = localtunnel.connect({
|
||||||
// the localtunnel server
|
// the localtunnel server
|
||||||
host: 'http://localtunnel.me',
|
host: 'http://localtunnel.me',
|
||||||
// your local application port
|
// your local application port
|
||||||
|
|||||||
Reference in New Issue
Block a user