Skip to content

Interface: SessionEvents ​

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

The events a Session emits, by name, with each one's payload. Listen with session.on(name, listener). See Events.

Extends ​

  • Record<string, unknown>

Indexable ​

ts
[key: string]: unknown

Properties ​

closed ​

ts
closed: object;

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

The session is closed. Emitted exactly once. cause is set if it closed because something failed.

cause? ​

ts
readonly cause?: NetconfError;

Why the session closed, if it closed because something failed.


closing ​

ts
closing: object;

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

close() was called; <close-session> is being sent.

reason ​

ts
readonly reason: "user";

Always 'user': close() was called.


message ​

ts
message: SessionMessage;

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

A NETCONF message was sent or received. xml has been through the session's redact.


notification ​

ts
notification: Notification;

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

A <notification> arrived from the server.


warning ​

ts
warning: SessionWarning;

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

Something odd that didn't stop the session: an rpc-error warning, an unmatched reply, a stray message.

Released under the MIT Licence.