diff --git a/src/app/services/processmanager.service.ts b/src/app/services/processmanager.service.ts index 092a7ac..e041436 100644 --- a/src/app/services/processmanager.service.ts +++ b/src/app/services/processmanager.service.ts @@ -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(this.anchor).subscribe(callback); + this.webSocketService.observeKey(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) {