Constructors
constructor
- new SessionManager(context): SessionManager
 
 Accessors
insecureSessions
- get insecureSessions(): Map<NodeId, InsecureSession>
 
owner
- get owner(): unknown
 Returns unknown
resubmissionStarted
- get resubmissionStarted(): Observable<[session: Session], void>
 
sessionParameters
- get sessionParameters(): SessionParameters
 - set sessionParameters(parameters): void
 Returns void
 Methods
clear
- clear(): Promise<void>
 Returns Promise<void>
clearSubscriptionsForNode
- clearSubscriptionsForNode(fabricIndex, nodeId, flushSubscriptions?): Promise<void>
 Returns Promise<void>
close
- close(): Promise<void>
 Returns Promise<void>
createInsecureSession
- createInsecureSession(options): InsecureSession
 
createSecureSession
- createSecureSession(args): Promise<SecureSession>
 Parameters
- args: { 
    caseAuthenticatedTags?: CaseAuthenticatedTag[]; 
    fabric: undefined | Fabric; 
    isInitiator: boolean; 
    isResumption: boolean; 
    peerNodeId: NodeId; 
    peerSessionId: number; 
    peerSessionParameters?: Partial<SessionParameters>; 
    salt: Uint8Array; 
    sessionId: number; 
    sharedSecret: Uint8Array; 
}fabric: undefined | Fabric
isInitiator: boolean
isResumption: boolean
peerSessionId: number
OptionalpeerSessionParameters?: Partial<SessionParameters>
salt: Uint8Array
sessionId: number
sharedSecret: Uint8Array
 
deleteResumptionRecord
- deleteResumptionRecord(address): Promise<void>
 Returns Promise<void>
deleteResumptionRecordsForFabric
- deleteResumptionRecordsForFabric(fabric): Promise<void>
 Returns Promise<void>
fabricFor
- fabricFor(address): Fabric
 
findGroupSession
- findGroupSession(groupId, groupSessionId): void
 Parameters
- groupId: number
 - groupSessionId: number
 
Returns void
findOldestInactiveSession
- findOldestInactiveSession(): SecureSession
 
findResumptionRecordByAddress
- findResumptionRecordByAddress(address): undefined | ResumptionRecord
 
findResumptionRecordById
- findResumptionRecordById(resumptionId): undefined | ResumptionRecord
 
getActiveSessionInformation
- getActiveSessionInformation(): { 
    fabric: undefined | ExposedFabricInformation; 
    isPeerActive: boolean; 
    lastActiveTimestamp: undefined | number; 
    lastInteractionTimestamp: undefined | number; 
    name: string; 
    nodeId: NodeId; 
    numberOfActiveSubscriptions: number; 
    peerNodeId: NodeId; 
    secure: boolean; 
}[] Returns { 
    fabric: undefined | ExposedFabricInformation; 
    isPeerActive: boolean; 
    lastActiveTimestamp: undefined | number; 
    lastInteractionTimestamp: undefined | number; 
    name: string; 
    nodeId: NodeId; 
    numberOfActiveSubscriptions: number; 
    peerNodeId: NodeId; 
    secure: boolean; 
}[]
getNextAvailableSessionId
- getNextAvailableSessionId(): Promise<number>
 Returns Promise<number>
getPaseSession
- getPaseSession(): SecureSession
 
getSession
- getSession(sessionId): undefined | SecureSession
 
getSessionForNode
- getSessionForNode(address): undefined | SecureSession
 
getUnsecureSession
- getUnsecureSession(sourceNodeId?): undefined | InsecureSession
 
removeAllSessionsForNode
- removeAllSessionsForNode(address, sendClose?): Promise<void>
 Returns Promise<void>
saveResumptionRecord
- saveResumptionRecord(resumptionRecord): Promise<void>
 Returns Promise<void>
updateAllSubscriptions
- updateAllSubscriptions(): void
 Returns void
Static[create]
- [create](env): SessionManager
 
Manages Matter sessions associated with peer connections.