Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
szantogab committed Feb 3, 2024
1 parent a0316fd commit 694aa26
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,10 @@ class GraphQLWebSocketChannel extends StreamChannelMixin<dynamic>

/// Stream of messages from the endpoint parsed as GraphQLSocketMessages
Stream<GraphQLSocketMessage> 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!;
}
Expand Down

0 comments on commit 694aa26

Please sign in to comment.