Add connected() to API interface (#2580)
* Add connected() to API interface * Slight doc update * Align ApiRx * isConnected() usage * Updates * Retrieve isConnected for API via observable * Remove (now) useless Rx test
This commit is contained in:
@@ -98,11 +98,15 @@ export default class Mock implements ProviderInterface {
|
||||
throw new Error('Unimplemented');
|
||||
}
|
||||
|
||||
public disconnect (): void {
|
||||
public async connect (): Promise<void> {
|
||||
// noop
|
||||
}
|
||||
|
||||
public isConnected (): boolean {
|
||||
public async disconnect (): Promise<void> {
|
||||
// noop
|
||||
}
|
||||
|
||||
public get isConnected (): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user