xmppjs / xmpp.js

XMPP for JavaScript
ISC License
2.19k stars 373 forks source link

Ignore exceptions thrown by emit('error', ..) #799

Closed wichert closed 4 years ago

wichert commented 4 years ago

EventEmitter will raise an exception if there are no handlers registered for an error event. This results in uncaught exceptions on at least socket reconnect attempts.

Fixes #797

wichert commented 4 years ago

@sonnyp Would it be possible to get this into a release soon?

sonnyp commented 4 years ago

https://github.com/xmppjs/xmpp.js/issues/797