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 daaa6a2b..490ca2d1 100644 --- a/packages/graphql/lib/src/links/websocket_link/websocket_client.dart +++ b/packages/graphql/lib/src/links/websocket_link/websocket_client.dart @@ -637,9 +637,10 @@ class GraphQLWebSocketChannel extends StreamChannelMixin /// Stream of messages from the endpoint parsed as GraphQLSocketMessages Stream get messages { - if (_messages == null) _messages = stream.map((event) { - return GraphQLSocketMessage.parse(event); - }).asBroadcastStream(); + if (_messages == null) + _messages = stream.map((event) { + return GraphQLSocketMessage.parse(event); + }).asBroadcastStream(); return _messages!; }