NodeSession
Since 3.0.0. The session of a node, in node.session. node.sessionId is a read-only getter for id. node.loadSessionIds() puts the stored session in resumeId, which the next connection sends in the Session-Id header.
Definition
export interface NodeSession {
/** The session REST calls use. `null` until the node is ready, and while it is disconnected. */
id: string | null;
/** The session to resume on the next connection, sent in the `Session-Id` header. */
resumeId: string | null;
/** Whether the node resumed the previous session on its last `ready`. */
resumed: boolean;
}