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,
        ): Promise<TEnvelope>;
    }

    Type Parameters

    • TEnvelope
    Index

    Engine