File tree 2 files changed +3
-4
lines changed 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -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.
@@ -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 ),
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ external JSFunction? supabaseFlutterWSToClose;
12
12
///
13
13
/// This causes old dart code that is still associated with the WebSocket
14
14
/// connection to be still running and causes unexpected behavior like type
15
- /// errors and the fact that the events to the old connection may still be
15
+ /// errors and the fact that the events of the old connection may still be
16
16
/// logged.
17
17
void markRealtimeClientToBeDisconnected (RealtimeClient client) {
18
18
void disconnect () {
You can’t perform that action at this time.
0 commit comments