From da3b6df703ced9b8180784e145c8c9dcf424683b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 12 Dec 2021 23:25:54 +0100 Subject: [PATCH] catch messages async errors. --- src/component/internal/messages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/internal/messages.ts b/src/component/internal/messages.ts index edc18483..45be74e0 100644 --- a/src/component/internal/messages.ts +++ b/src/component/internal/messages.ts @@ -60,7 +60,7 @@ export class NekoMessages extends EventEmitter { 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 }) }