2
0
Mirror von https://git.coolaj86.com/coolaj86/telebit-relay.js.git synchronisiert 2025-10-19 17:53:20 +00:00
Dieser Commit ist enthalten in:
AJ ONeal 2016-10-12 19:11:11 -04:00
Ursprung 6185b79263
Commit 09a98f6b3a

Datei anzeigen

@ -189,7 +189,15 @@ module.exports.create = function (opts) {
// var chunk = socket.read();
console.log('[bstream] data from browser to tunneler', pchunk.byteLength);
//console.log(JSON.stringify(pchunk.toString()));
ws.send(pchunk, { binary: true });
try {
ws.send(pchunk, { binary: true });
} catch(e) {
try {
bstream.browser.end();
} catch(e) {
// ignore
}
}
});
bstream.wrapped.on('error', function (err) {
console.error('[error] bstream.wrapped.error');