RealtimeWebSocketClient constructor

RealtimeWebSocketClient({
  1. int maxReconnect = DEFAULT_MAX_RECONNECT,
  2. int reconnectInterval = DEFAULT_WS_RECONNECT_INTERVAL,
  3. required int realtimePingInterval,
  4. required int realtimePongWaitTimeout,
  5. required GetAccessTokenFunc getAccessToken,
})

Implementation

RealtimeWebSocketClient({
  int maxReconnect = DEFAULT_MAX_RECONNECT,
  int reconnectInterval = DEFAULT_WS_RECONNECT_INTERVAL,
  required int realtimePingInterval,
  required int realtimePongWaitTimeout,
  required GetAccessTokenFunc getAccessToken,
}) {
  this._maxReconnect = maxReconnect;
  this._reconnectInterval = reconnectInterval;
  this._realtimePingInterval = reconnectInterval;
  this._realtimePongWaitTimeout = realtimePongWaitTimeout;
  this._getAccessToken = getAccessToken;
}