Syntax fix

This commit is contained in:
Abdussamed 2024-04-03 16:03:02 +03:00
parent 8d076456e3
commit 73b5ade3e1
1 changed files with 1 additions and 1 deletions

View File

@ -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)