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)