Syntax fix
This commit is contained in:
parent
8d076456e3
commit
73b5ade3e1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue