How to use the localtunnel.bind function in localtunnel

To help you get started, we’ve selected a few localtunnel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github micnews / condor / test / saucelabs-child.js View on Github external
test('setup browser, server & tunnel', function* () {
  yield server.listen.bind(server, 0)
  tunnel = yield localtunnel.bind(localtunnel, server.address().port)

  tunnel.tunnel_cluster.on('error', function (err) {
    if (!err.code || err.code !== 'ETIMEDOUT') {
      throw err
    }
  })

  server.url = tunnel.url
  yield browser.init(config)
})

localtunnel

Expose localhost to the world

MIT
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis