ing
This commit is contained in:
@@ -23,13 +23,10 @@ export class ProbeSubscriber {
|
||||
public constructor(
|
||||
private loggerService: LoggerService,
|
||||
) {
|
||||
this.probeSubscriberSubject = null;
|
||||
this.probeSubscriberSubject = new ProbeSubscriberSubject();
|
||||
}
|
||||
|
||||
public observable(): Observable<ProbeNotify> {
|
||||
if (null === this.probeSubscriberSubject) {
|
||||
this.probeSubscriberSubject = new ProbeSubscriberSubject();
|
||||
}
|
||||
return this.probeSubscriberSubject.asObservable();
|
||||
}
|
||||
|
||||
@@ -37,14 +34,14 @@ export class ProbeSubscriber {
|
||||
this.probeSubscriberSubject.next({ method: method, params: params });
|
||||
}
|
||||
|
||||
@RPCSubscriber({method: 'ProbeService.onConnect'})
|
||||
@RPCSubscriber({ method: 'ProbeService.onConnect' })
|
||||
public onConnect(probe: Probe): void {
|
||||
this.loggerService.debug('ProbeService.onConnect probe:', probe);
|
||||
|
||||
this.publish('ProbeService.onConnect', probe);
|
||||
}
|
||||
|
||||
@RPCSubscriber({method: 'ProbeService.onDisconnect'})
|
||||
@RPCSubscriber({ method: 'ProbeService.onDisconnect' })
|
||||
public onDisconnect(probe: Probe): void {
|
||||
this.loggerService.debug('ProbeService.onDisconnect noAuthProbe:', probe);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user