This commit is contained in:
crusader 2018-09-05 15:56:04 +09:00
parent 19dda63c8a
commit 4c04ca5132
3 changed files with 14 additions and 5 deletions

View File

@ -39,7 +39,7 @@
"@ngrx/schematics": "^6.1.0",
"@ngrx/store": "^6.1.0",
"@ngrx/store-devtools": "^6.1.0",
"@overflow/rpc-js": "0.0.4",
"@overflow/rpc-js": "0.0.5",
"@types/fs-extra": "^5.0.4",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",

View File

@ -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');
}
});
}
}

View File

@ -224,9 +224,9 @@
tree-kill "^1.0.0"
webpack-sources "^1.1.0"
"@overflow/rpc-js@0.0.4":
version "0.0.4"
resolved "https://nexus.loafle.net/repository/npm-all/@overflow/rpc-js/-/rpc-js-0.0.4.tgz#0d0fe3919551ab60b784825f612290c6003148c7"
"@overflow/rpc-js@0.0.5":
version "0.0.5"
resolved "https://nexus.loafle.net/repository/npm-all/@overflow/rpc-js/-/rpc-js-0.0.5.tgz#9b406d90a7b034cbd679985c1f7a117d17a8983e"
"@schematics/angular@0.7.3":
version "0.7.3"