Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for two new library APIs to add graphql-ws over WebSocket-Over-Http support to a broader class of node.js projects, not just those using express.
apollo-server-micro
to produce the logic used by the sample RequestListener, but any RequestListener would work (e.g. those in the node http docs)SubscriptionServer.create
takes an http.Server and adds WebSocket listeners to itNote that the interface of
micro
's default export is going to change in 9.3.5 (next release) to return an http.RequestListener whereas historically it has returned an http.Server (vercel/micro#399).Pretty big change. Hopefully they do it as a major semver bump since it seems like it will be backward incompatible).