diff --git a/src/main/streaming.js b/src/main/streaming.js index 32680d20..b9ece101 100644 --- a/src/main/streaming.js +++ b/src/main/streaming.js @@ -64,6 +64,9 @@ export default class Streaming { this.listener.on('error', (e) => { log.error(e) }) + this.listener.on('parser-error', (e) => { + log.error(e) + }) this.listener.stop() log.info('streaming stopped') } diff --git a/src/main/websocket.js b/src/main/websocket.js index 93b52306..89f2654a 100644 --- a/src/main/websocket.js +++ b/src/main/websocket.js @@ -75,6 +75,9 @@ export default class WebSocket { this.listener.on('error', (e) => { log.error(e) }) + this.listener.on('parser-error', (e) => { + log.error(e) + }) this.listener.stop() log.info('streaming stopped') }