WebSocketOptions constructor

const WebSocketOptions({
  1. List<String>? protocols,
  2. Map<String, String>? headers,
  3. Duration? connectTimeout,
  4. Duration? pingInterval,
  5. bool autoReconnect = true,
  6. Duration reconnectInterval = const Duration(seconds: 3),
  7. int maxReconnectAttempts = 5,
})

Implementation

const WebSocketOptions({
  this.protocols,
  this.headers,
  this.connectTimeout,
  this.pingInterval,
  this.autoReconnect = true,
  this.reconnectInterval = const Duration(seconds: 3),
  this.maxReconnectAttempts = 5,
});