|
|
@ -96,7 +96,7 @@ export class DecisionApi implements Api { |
|
|
|
private sendEditStatusEvent(name: string, type: string): Promise<SocketResult> { |
|
|
|
private sendEditStatusEvent(name: string, type: string): Promise<SocketResult> { |
|
|
|
return new Promise(resolve => { |
|
|
|
return new Promise(resolve => { |
|
|
|
if (Dec && Dec.socket.connected) { |
|
|
|
if (Dec && Dec.socket.connected) { |
|
|
|
Dec.socket.emit(type, BI.encode(name), (re: any) => { |
|
|
|
Dec.socketEmit(type, BI.encode(name), (re: any) => { |
|
|
|
resolve(re); |
|
|
|
resolve(re); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|