Skip to content

Function: openSession() ​

ts
function openSession(connection, options?): Promise<Session>;

Defined in: netconf/src/messages/session.ts:246

Start a NETCONF session on an open connection: frame it, exchange hellos, and agree the base version. Resolves once the session is ready for RPCs. If the hello fails, the connection is closed before this rejects.

Parameters ​

connection ​

Connection

options? ​

SessionOptions = {}

Returns ​

Promise<Session>

Released under the MIT Licence.