Skip to content

Commit 9f3066b

Browse files
committed
refactor: remove usage of longpollerTimeout
1 parent 1ccfd7f commit 9f3066b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/realtime_client/lib/src/realtime_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class RealtimeClient {
145145
},
146146
transport = transport ?? createWebSocketClient {
147147
_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');
149149
_log.finest('Initialize with headers: $headers, params: $params');
150150
final customJWT = this.headers['Authorization']?.split(' ').last;
151151
accessToken = customJWT ?? params['apikey'];

packages/realtime_client/test/socket_test.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ void main() {
7878
'message': [],
7979
});
8080
expect(socket.timeout, const Duration(milliseconds: 10000));
81-
expect(socket.longpollerTimeout, 20000);
8281
expect(socket.heartbeatIntervalMs, Constants.defaultHeartbeatIntervalMs);
8382
expect(
8483
socket.logger is void Function(
@@ -99,7 +98,6 @@ void main() {
9998
final socket = RealtimeClient(
10099
'wss://example.com/socket',
101100
timeout: const Duration(milliseconds: 40000),
102-
longpollerTimeout: 50000,
103101
heartbeatIntervalMs: 60000,
104102
// ignore: avoid_print
105103
logger: (kind, msg, data) => print('[$kind] $msg $data'),
@@ -116,7 +114,6 @@ void main() {
116114
'message': [],
117115
});
118116
expect(socket.timeout, const Duration(milliseconds: 40000));
119-
expect(socket.longpollerTimeout, 50000);
120117
expect(socket.heartbeatIntervalMs, 60000);
121118
expect(
122119
socket.logger is void Function(

0 commit comments

Comments
 (0)