From 73b5ade3e183568c27120ec008194ddf1fe5f97b Mon Sep 17 00:00:00 2001 From: Abdussamed Date: Wed, 3 Apr 2024 16:03:02 +0300 Subject: [PATCH] Syntax fix --- frontend/EventPool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/EventPool.ts b/frontend/EventPool.ts index 442988d..6c970e7 100644 --- a/frontend/EventPool.ts +++ b/frontend/EventPool.ts @@ -17,7 +17,6 @@ export default class EventPool { return new Promise((ok,rej) => { let id = ++this.count; - this.wsts.WSTSProtocol.SendRequest(msg, id); this.events.set(id,[ (data:any) => { ok(data); @@ -26,6 +25,7 @@ export default class EventPool rej(data); } ]); + this.wsts.WSTSProtocol.SendRequest(msg, id); }) } public stream(msg: Message, callback: Function)