Skip to content

Interface: SubscriptionsContent ​

Defined in: netconf/src/operations/subscriptions/extension.ts:47

What client.content.subscriptions holds.

Methods ​

capabilities() ​

ts
capabilities(options?): Promise<SubscriptionCapabilities | undefined>;

Defined in: netconf/src/operations/subscriptions/extension.ts:62

What the server can push, from its RFC 9196 /system-capabilities: on-change and periodic support, minimum periods and more, at system level and per datastore and node. Resolves with undefined, reading nothing more, when the server doesn't implement ietf-system-capabilities (it is in neither the hello nor the YANG library). See What the server can push.

Parameters ​

options? ​

RpcOptions

Returns ​

Promise<SubscriptionCapabilities | undefined>


list() ​

ts
list(options?): Promise<SubscriptionInfo[]>;

Defined in: netconf/src/operations/subscriptions/extension.ts:53

Every dynamic subscription on the server, of every session (/subscriptions).

Parameters ​

options? ​

RpcOptions

Returns ​

Promise<SubscriptionInfo[]>


streams() ​

ts
streams(options?): Promise<StreamInfo[]>;

Defined in: netconf/src/operations/subscriptions/extension.ts:51

The event streams the server offers (/streams).

Parameters ​

options? ​

RpcOptions

Returns ​

Promise<StreamInfo[]>


support() ​

ts
support(options?): Promise<SubscriptionSupport>;

Defined in: netconf/src/operations/subscriptions/extension.ts:49

Which modules and features the server implements. Read once from the YANG library, then cached.

Parameters ​

options? ​

RpcOptions & object

Returns ​

Promise<SubscriptionSupport>

Released under the MIT Licence.