durable-tunnel
Durable wrapper for Localtunnel
Last updated 4 years ago by mvegeto .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install durable-tunnel 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.1                                ...           latest (4 years ago)

1 Versions

  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |