useAutoResend property

bool get useAutoResend

Implementation

bool get useAutoResend => _useAutoResend;
set useAutoResend (dynamic value)

If set true and useCollectionCaching is true, the failed messages will be resent automatically when the WebSocket is reconnected

With local caching, you can temporarily keep an unsent message in the local cache if the WebSocket connection is lost. The Chat SDK with local caching marks the failed message as pending, stores it locally, and automatically resends the pending message when the WebSocket is reconnected. This is called auto resend. The default value is false.

@since 4.2.26

Implementation

set useAutoResend(value) {
  if (_useCollectionCaching) {
    _useAutoResend = value;
  }
}