Documentation
    Preparing search index...

    Interface IDecoder<T>

    interface IDecoder<T extends IDecodedMessage> {
        contentTopic: string;
        fromProtoObj: (
            pubsubTopic: string,
            proto: IProtoMessage,
        ) => Promise<undefined | T>;
        fromWireToProtoObj: (
            bytes: Uint8Array,
        ) => Promise<undefined | IProtoMessage>;
        pubsubTopic: string;
    }

    Type Parameters

    Implemented by

    Index

    Properties

    contentTopic: string
    fromProtoObj: (
        pubsubTopic: string,
        proto: IProtoMessage,
    ) => Promise<undefined | T>
    fromWireToProtoObj: (bytes: Uint8Array) => Promise<undefined | IProtoMessage>
    pubsubTopic: string