Merge pull request #102 from aronwoost/patch-01

Emit socket errors, so they can be handled
This commit is contained in:
Roman Shtylman
2015-11-04 07:54:45 -08:00

View File

@@ -88,6 +88,11 @@ Tunnel.prototype._establish = function(info) {
self.emit('url', info.url);
});
// re-emit socket error
tunnels.on('error', function(err) {
self.emit('error', err);
});
var tunnel_count = 0;
// track open count