Marmot-TS
    Preparing search index...

    Interface GroupPeeler<TEnvelope>

    Crypto boundary between the engine and transport-specific wrapping.

    interface GroupPeeler<TEnvelope> {
        idOf(envelope: TEnvelope): string;
        peelGroupMessages(
            envelopes: TEnvelope[],
            state: ClientState,
        ): Promise<
            { read: PeeledMessagePair<TEnvelope>[]; unreadable: TEnvelope[] },
        >;
        wrapGroupMessage(
            message: MlsMessage,
            state: ClientState,
            metadata?: GroupMessageWrapMetadata,
        ): Promise<TEnvelope>;
    }

    Type Parameters

    • TEnvelope
    Index
    • A stable transport id for an envelope (used to key the ingestion pool).

      Parameters

      Returns string