File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/graphql/lib/src/links/websocket_link Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,20 @@ class SocketClientConfig {
141141 }
142142}
143143
144+ /// All the protocol supported by the library
145+ @Deprecated ("`SocketSubProtocol`is deprecated and will be removed in the version 5.2.0, consider to use `GraphQLProtocol`" )
144146class SocketSubProtocol {
145147 SocketSubProtocol ._();
148+ /// graphql-ws: The new (not to be confused with the graphql-ws library).
149+ /// NB. This protocol is it no longer maintained, please consider
150+ /// to use `SocketSubProtocol.graphqlTransportWs` .
151+ static const String graphqlWs = GraphQLProtocol .graphqlWs;
152+ /// graphql-transport-ws: New ws protocol used by most Apollo Server instances
153+ /// with subscriptions enabled use this library.
154+ /// N.B: not to be confused with the graphql-ws library that implement the
155+ /// old ws protocol.
156+ static const String graphqlTransportWs = GraphQLProtocol .graphqlWs;
157+ }
146158
147159 static const String graphqlWs = "graphql-ws" ;
148160 static const String graphqlTransportWs = "graphql-transport-ws" ;
You can’t perform that action at this time.
0 commit comments