Function useResendMessage
- useResendMessage(options?): {
cancel: ((message: CachedMessage) => Promise<void>);
error: null | Error;
isLoading: boolean;
resend: ((message: CachedMessage) => Promise<DecodedMessage<any>>);
} Parameters
Optional
options: 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>
Returns Promise<void>
error: null | Error
isLoading: boolean
resend: ((message: CachedMessage) => Promise<DecodedMessage<any>>)
- (message): Promise<DecodedMessage<any>>
Returns Promise<DecodedMessage<any>>
This hook can be used to resend a previously failed message, or cancel it.