Skip to content

Support new graphql-ws subprotocol #38

@Quantumplation

Description

@Quantumplation

At some point, the graphql community made the breaking change to switch to a new websocket subprotocol; What was previously called the graphql-ws subprotocol is now called graphql-transport-ws. N.B. Confusingly, the standard library implementing this in the js world is called graphql-ws, making this non-trivial to track down, as I kept thinking that graphql-ws was the more modern one.

It would be super helpful to support the new spec.

See:
https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws
https://github.com/enisdenjo/graphql-ws/tree/master/docs
https://github.com/enisdenjo/graphql-ws/blob/d44c6f18ccd2bc539bb541e6bfd1bf0c769c7856/src/common.ts#L10-L15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions