durable-tunnel

0.0.1 • Public • Published

Durable Tunnel

Setup an auto-regenerating tunnel to the outside world

Installation

npm install durable-tunnel

Usage

var DurableTunnel = require('durable-tunnel');
 
var tunneler = new DurableTunnel();
 
var config = {
  timeout: 500,                             // Ms to wait before regenerating tunnels on error
  notify: ['http://localhost:4040/notify'], // Array of urls to notify of tunnel url changes
  opts: {                                   // Localtunnel options
    local_host: 'awesome.dev'
  }
}
 
// Creates a new tunnel, or returns one if it already exists
tunneler.get("tunnel_name", process.env.PORT, config, function(tunnel) {
  
})

Readme

Keywords

none

Package Sidebar

Install

npm i durable-tunnel

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mvegeto