Expose hasSubscriptions on api rx interface (#1479)
This commit is contained in:
@@ -127,6 +127,7 @@ export default abstract class Decorate<ApiType> extends Events {
|
|||||||
this._type = type;
|
this._type = type;
|
||||||
this._rpcCore = new RpcCore(thisProvider);
|
this._rpcCore = new RpcCore(thisProvider);
|
||||||
this._isConnected = new BehaviorSubject(this._rpcCore.provider.isConnected());
|
this._isConnected = new BehaviorSubject(this._rpcCore.provider.isConnected());
|
||||||
|
this._rx.hasSubscriptions = this._rpcCore.provider.hasSubscriptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user