Skip to content

Commit e8636a5

Browse files
deprecated(graphql): deprecated the SocketSubProtocol to improve naming
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 7a84abb commit e8636a5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ 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+
/// graphql-ws: The new (not to be confused with the graphql-ws library).
150+
/// NB. This protocol is it no longer maintained, please consider
151+
/// to use `SocketSubProtocol.graphqlTransportWs`.
152+
static const String graphqlWs = GraphQLProtocol.graphqlWs;
153+
/// graphql-transport-ws: New ws protocol used by most Apollo Server instances
154+
/// with subscriptions enabled use this library.
155+
/// N.B: not to be confused with the graphql-ws library that implement the
156+
/// old ws protocol.
157+
static const String graphqlTransportWs = GraphQLProtocol.graphqlWs;
158+
}
149159

150160
/// graphql-ws: The new (not to be confused with the graphql-ws library).
151161
/// NB. This protocol is it no longer maintained, please consider

0 commit comments

Comments
 (0)