diff --git a/packages/graphql/lib/src/links/websocket_link/websocket_client.dart b/packages/graphql/lib/src/links/websocket_link/websocket_client.dart index 9f6ff470..ecca76c8 100644 --- a/packages/graphql/lib/src/links/websocket_link/websocket_client.dart +++ b/packages/graphql/lib/src/links/websocket_link/websocket_client.dart @@ -215,7 +215,8 @@ class SocketClient { final SocketClientConfig config; final BehaviorSubject _connectionStateController = - BehaviorSubject(); + BehaviorSubject.seeded( + SocketConnectionState.notConnected); final HashMap _subscriptionInitializers = HashMap(); diff --git a/packages/graphql_flutter/pubspec.yaml b/packages/graphql_flutter/pubspec.yaml index 30185336..0c9c0e2a 100644 --- a/packages/graphql_flutter/pubspec.yaml +++ b/packages/graphql_flutter/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: meta: ^1.7.0 path_provider: ^2.0.1 path: ^1.8.0 - connectivity_plus: ^6.0.1 + connectivity_plus: ^6.0.3 hive: ^2.0.0 plugin_platform_interface: ^2.0.0 flutter_hooks: '>=0.18.2 <0.21.0'