ing
This commit is contained in:
@@ -24,6 +24,9 @@ export class ProbeService extends Client {
|
||||
|
||||
public constructor() {
|
||||
super(codec, rwc);
|
||||
|
||||
this.connect();
|
||||
|
||||
this.notiSubscription = this.notification()
|
||||
.subscribe((notiCodec: ClientNotificationCodec) => {
|
||||
console.log(notiCodec.method());
|
||||
@@ -35,6 +38,12 @@ export class ProbeService extends Client {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this.connectionStatus().subscribe(isConnected => {
|
||||
if (!isConnected) {
|
||||
console.log('disconnected');
|
||||
} else {
|
||||
console.log('connected');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user