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') {
try {
// @ts-ignore
this[event](payload)
await this[event](payload)
} catch (error: any) {
this._remoteLog.error(`error while processing websocket event`, { event, error })
}