vazco-proxy v1.0.0
vazco-proxy
installation
npm install -g vazco-proxyThis will install the localtunnel module globally and add the 'vazco-proxy' client cli tool to your PATH.
use
Assuming your local server is running on port 8000, just use the vazco-proxy command to start the tunnel.
Password to tun.vazco.eu you can find at https://pass.vazco.eu
vazco-proxy --port 8000 --password somePasswordThats it! It will connect to the tunnel server, setup the tunnel, and tell you what url to use for your testing. This url will remain active for the duration of your session; so feel free to share it with others for happy fun time!
You can restart your local server all you want, vazco-proxy is smart enough to detect this and reconnect once it is back.
arguments
Below are some common arguments. See vazco-proxy --help for additional arguments
--subdomainrequest a named subdomain in tun.vazco.eu (default is random characters). So command likevazco-proxy --port 3000 --subdomain kotekwill create tunnel fromlocalhost:3000tokotek.tun.vazco.eu--local-hostproxy to a hostname other than localhost
You may also specify arguments via env variables. E.x.
PORT=3000 PASSWORD=somePassword vazco-proxyTunnel
The tunnel instance returned to your callback emits the following events
| event | args | description |
|---|---|---|
| request | info | fires when a request is processed by the tunnel, contains method and path fields |
| error | err | fires when an error happens on the tunnel |
| close | fires when the tunnel has closed |
The tunnel instance has the following methods
| method | args | description |
|---|---|---|
| close | close the tunnel |
License
MIT