withRetry method

WebSocketMessage withRetry()

Creates a copy of this message with updated retry count.

Implementation

WebSocketMessage withRetry() {
  return WebSocketMessage(
    data: data,
    type: type,
    timestamp: timestamp,
    id: id,
    requiresAck: requiresAck,
    retryCount: retryCount + 1,
    maxRetries: maxRetries,
  );
}