SolanaMobileWebSocket constructor

SolanaMobileWebSocket({
  1. int? maxAttempts,
  2. List<int>? backoffSchedule,
  3. Iterable<String>? protocols,
})

Manages a single web socket connection.

Implementation

SolanaMobileWebSocket({
  final int? maxAttempts,
  final List<int>? backoffSchedule,
  this.protocols,
}): maxAttempts = maxAttempts ?? 1,
    backoffSchedule = backoffSchedule ?? const [],
    assert(maxAttempts == null || maxAttempts > 0);