Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async checkUp(host: HostRecord): Promise {
if (host.type !== UP) {
return false;
}
return kernels
.list(host.config)
.pipe(
map(xhr => {
console.log(xhr);
return true;
}),
catchError(err => {
console.error("error listing kernels on server", err);
return of(false);
})
)
.toPromise();
}