Skip to content
Snippets Groups Projects
Unverified Commit a1c41a16 authored by Diego Sampaio's avatar Diego Sampaio Committed by GitHub
Browse files

Regression: Fix unexpected errors breaking ddp-streamer (#24948)

parent e2b83fb7
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,11 @@ export class Client extends EventEmitter {
clearTimeout(this.timeout);
});
this.ws.on('error', (err) => {
console.error('Unexpected error:', err);
this.ws.close(WS_ERRORS.CLOSE_PROTOCOL_ERROR, WS_ERRORS_MESSAGES.CLOSE_PROTOCOL_ERROR);
});
this.setMaxListeners(50);
this.greeting();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment