File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/graphql/lib/src/links/websocket_link Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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`" )
147147class 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
You can’t perform that action at this time.
0 commit comments