@@ -88,6 +88,8 @@ class RealtimeClient {
88
88
'error' : [],
89
89
'message' : []
90
90
};
91
+
92
+ @Deprecated ("No longer used. Will be removed in the next major version." )
91
93
int longpollerTimeout = 20000 ;
92
94
SocketStates ? connState;
93
95
// This is called `accessToken` in realtime-js
@@ -113,8 +115,6 @@ class RealtimeClient {
113
115
///
114
116
/// [decode] The function to decode incoming messages. Defaults to JSON: (payload, callback) => callback(JSON.parse(payload))
115
117
///
116
- /// [longpollerTimeout] The maximum timeout of a long poll AJAX request. Defaults to 20s (double the server long poll timer).
117
- ///
118
118
/// [reconnectAfterMs] The optional function that returns the millsec reconnect interval. Defaults to stepped backoff off.
119
119
///
120
120
/// [logLevel] Specifies the log level for the connection on the server.
@@ -145,7 +145,7 @@ class RealtimeClient {
145
145
},
146
146
transport = transport ?? createWebSocketClient {
147
147
_log.config (
148
- 'Initialize RealtimeClient with endpoint: $endPoint , timeout: $timeout , heartbeatIntervalMs: $heartbeatIntervalMs , longpollerTimeout: $ longpollerTimeout , logLevel: $logLevel ' );
148
+ 'Initialize RealtimeClient with endpoint: $endPoint , timeout: $timeout , heartbeatIntervalMs: $heartbeatIntervalMs , logLevel: $logLevel ' );
149
149
_log.finest ('Initialize with headers: $headers , params: $params ' );
150
150
final customJWT = this .headers['Authorization' ]? .split (' ' ).last;
151
151
accessToken = customJWT ?? params['apikey' ];
@@ -198,7 +198,6 @@ class RealtimeClient {
198
198
connState = SocketStates .open;
199
199
200
200
_onConnOpen ();
201
- conn! .stream.timeout (Duration (milliseconds: longpollerTimeout));
202
201
conn! .stream.listen (
203
202
// incoming messages
204
203
(message) => onConnMessage (message as String ),
0 commit comments