catch messages async errors.

This commit is contained in:
Miroslav Šedivý 2021-12-12 23:25:54 +01:00
parent 693ac08e10
commit da3b6df703

View File

@ -60,7 +60,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
if (typeof this[event] === 'function') { if (typeof this[event] === 'function') {
try { try {
// @ts-ignore // @ts-ignore
this[event](payload) await this[event](payload)
} catch (error: any) { } catch (error: any) {
this._remoteLog.error(`error while processing websocket event`, { event, error }) this._remoteLog.error(`error while processing websocket event`, { event, error })
} }