RealtimeWebSocketClient constructor
RealtimeWebSocketClient({
- int maxReconnect = DEFAULT_MAX_RECONNECT,
- int reconnectInterval = DEFAULT_WS_RECONNECT_INTERVAL,
- required int realtimePingInterval,
- required int realtimePongWaitTimeout,
- 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;
}