Fix anchor->key refactor conflicts after rebase

This commit is contained in:
Kristóf Tóth 2018-02-27 14:31:20 +01:00
parent 848c7ce71b
commit 21043ee74e

View File

@ -6,7 +6,7 @@ import { ProcessCommand } from './processcommand';
@Injectable()
export class ProcessManagerService {
anchor = 'anchor_processmanager';
key = 'processmanager';
process_name: string;
constructor(private webSocketService: WebSocketService) {}
@ -17,14 +17,14 @@ export class ProcessManagerService {
}
subscribeCallback(callback: (event: any) => void) {
this.webSocketService.observeAnchor<ProcessCommand>(this.anchor).subscribe(callback);
this.webSocketService.observeKey<ProcessCommand>(this.key).subscribe(callback);
}
sendCommand(command: string, callback?: (event: any) => void) {
if (callback) {
this.subscribeCallback(callback);
}
this.webSocketService.send(this.anchor, {'command': command});
this.webSocketService.send(this.key, {'command': command});
}
startProcess(callback?: (event: any) => void) {