Skip to content

Commit 869fbed

Browse files
feat(graphql): Introduce a new class GraphQLProtocol with bettern naming
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent e8636a5 commit 869fbed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/graphql/lib/src/links/websocket_link/websocket_client.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,15 @@ class SocketClientConfig {
146146
"`SocketSubProtocol`is deprecated and will be removed in the version 5.2.0, consider to use `GraphQLProtocol`")
147147
class SocketSubProtocol {
148148
SocketSubProtocol._();
149+
149150
/// graphql-ws: The new (not to be confused with the graphql-ws library).
150151
/// NB. This protocol is it no longer maintained, please consider
151152
/// to use `SocketSubProtocol.graphqlTransportWs`.
152153
static const String graphqlWs = GraphQLProtocol.graphqlWs;
153-
/// graphql-transport-ws: New ws protocol used by most Apollo Server instances
154+
155+
/// graphql-transport-ws: New ws protocol used by most Apollo Server instances
154156
/// with subscriptions enabled use this library.
155-
/// N.B: not to be confused with the graphql-ws library that implement the
157+
/// N.B: not to be confused with the graphql-ws library that implement the
156158
/// old ws protocol.
157159
static const String graphqlTransportWs = GraphQLProtocol.graphqlWs;
158160
}

0 commit comments

Comments
 (0)