interface IEncoder {
    contentTopic: string;
    ephemeral: boolean;
    pubsubTopic: string;
    toProtoObj: ((message) => Promise<undefined | IProtoMessage>);
    toWire: ((message) => Promise<undefined | Uint8Array>);
}

Implemented by

Properties

contentTopic: string
ephemeral: boolean
pubsubTopic: string
toProtoObj: ((message) => Promise<undefined | IProtoMessage>)

Type declaration

toWire: ((message) => Promise<undefined | Uint8Array>)

Type declaration

    • (message): Promise<undefined | Uint8Array>
    • Parameters

      Returns Promise<undefined | Uint8Array>

Generated using TypeDoc