remove client components

* devDep localtunnel module for client
* update readme for server info
This commit is contained in:
Roman Shtylman
2013-06-16 18:46:29 -04:00
parent 0568ae0bef
commit a6ec239a27
7 changed files with 15 additions and 244 deletions

View File

@@ -1,34 +0,0 @@
#!/usr/bin/env node
var lt_client = require(__dirname + '/../client');
var argv = require('optimist')
.usage('Usage: $0 --port [num]')
.demand(['port'])
.options('host', {
default: 'http://localtunnel.me',
describe: 'upstream server providing forwarding'
})
.options('subdomain', {
describe: 'request this subdomain'
})
.describe('port', 'internal http server port')
.argv;
var opt = {
host: argv.host,
port: argv.port,
subdomain: argv.subdomain,
}
var client = lt_client.connect(opt);
// only emitted when the url changes
client.on('url', function(url) {
console.log('your url is: %s', url);
});
client.on('error', function(err) {
console.error(err);
});
// vim: ft=javascript