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();