Skip to content

Function: connect() ​

ts
function connect<E>(options): Promise<NetconfClient<OpsMap<E>, ContentMap<E>>>;

Defined in: netconf/src/index.ts:35

Connect to a NETCONF server: open the connection, start the NETCONF session (hello, framing), and apply the device profile. Resolves once the client is ready for RPCs.

Type Parameters ​

E ​

E extends readonly Extension<string, object, object>[] = []

Parameters ​

options ​

ConnectOptions<E>

Returns ​

Promise<NetconfClient<OpsMap<E>, ContentMap<E>>>

Released under the MIT Licence.