Syntax fix
This commit is contained in:
parent
8d076456e3
commit
73b5ade3e1
|
@ -17,7 +17,6 @@ export default class EventPool
|
||||||
{
|
{
|
||||||
return new Promise((ok,rej) => {
|
return new Promise((ok,rej) => {
|
||||||
let id = ++this.count;
|
let id = ++this.count;
|
||||||
this.wsts.WSTSProtocol.SendRequest(msg, id);
|
|
||||||
this.events.set(id,[
|
this.events.set(id,[
|
||||||
(data:any) => {
|
(data:any) => {
|
||||||
ok(data);
|
ok(data);
|
||||||
|
@ -26,6 +25,7 @@ export default class EventPool
|
||||||
rej(data);
|
rej(data);
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
this.wsts.WSTSProtocol.SendRequest(msg, id);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
public stream(msg: Message, callback: Function)
|
public stream(msg: Message, callback: Function)
|
||||||
|
|
Loading…
Reference in New Issue