Note that there are breaking changes in ws6.0.0 and
7.0.0; for example,
messages over 100MiB are rejected, and (in v7) the behavior of sending messages
while the connection is starting or ending has changed. We are publishing this
package to allow users of Apollo Server 2 to avoid seeing this
CVE in their npm audit. However, note
that (a) this CVE does not affect the subscriptions client, just the server
and (b) Apollo Server 3 will remove its superficial integration with this
package entirely. We encourage users of Apollo Server 2 to disable the
integration with this unmaintained package via new ApolloServer({subscriptions: false}), and consider packages such as graphql-ws to power GraphQL
subscriptions until such time as Apollo Server has more fully integrated
subscriptions support.
Note that there are breaking changes in
ws
6.0.0
and7.0.0
; for example, messages over 100MiB are rejected, and (in v7) the behavior of sending messages while the connection is starting or ending has changed. We are publishing this package to allow users of Apollo Server 2 to avoid seeing this CVE in theirnpm audit
. However, note that (a) this CVE does not affect the subscriptions client, just the server and (b) Apollo Server 3 will remove its superficial integration with this package entirely. We encourage users of Apollo Server 2 to disable the integration with this unmaintained package vianew ApolloServer({subscriptions: false})
, and consider packages such asgraphql-ws
to power GraphQL subscriptions until such time as Apollo Server has more fully integrated subscriptions support.