Interface between ServerSubscription and the local Matter environment.

interface ServerSubscriptionContext {
    session: SecureSession;
    structure: InteractionEndpointStructure;
    initiateExchange(address: PeerAddress, protocolId: number): MessageExchange;
    readAttribute(path: AttributePath, attribute: AnyAttributeServer<unknown>, offline?: boolean): Promise<{
        value: unknown;
        version: number;
    }>;
    readEvent(path: EventPath, event: AnyEventServer<any, any>, eventFilters: undefined | TypeFromFields<{
        eventMin: FieldType<number | bigint>;
        nodeId: OptionalFieldType<NodeId>;
    }>[]): Promise<EventStorageData<unknown>[]>;
}

Properties

session: SecureSession

Methods