0.0.1 • Published 8 years ago

durable-tunnel v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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) {
  
})