Function useResendMessage

This hook can be used to resend a previously failed message, or cancel it.

  • Parameters

    • Optionaloptions: UseSendMessageOptions

    Returns {
        cancel: ((message: CachedMessage) => Promise<void>);
        error: null | Error;
        isLoading: boolean;
        resend: ((message: CachedMessage) => Promise<DecodedMessage<any>>);
    }

    • cancel: ((message: CachedMessage) => Promise<void>)
        • (message): Promise<void>
        • Parameters

          Returns Promise<void>

    • error: null | Error
    • isLoading: boolean
    • resend: ((message: CachedMessage) => Promise<DecodedMessage<any>>)
        • (message): Promise<DecodedMessage<any>>
        • Parameters

          Returns Promise<DecodedMessage<any>>