Skip to content

Add support for the GraphQL-WS Subprotocol #238

@artran

Description

@artran

Add support for the GraphQL-WS Subprotocol

Reason for request

The current implementation of the WebSocket endpoint can only handle the Apollo-WS transport, which has been deprecated. As new server libraries are moving over to the GrapQL-WS transport it would be really helpful if the WebSocket endpoint could also support the newer protocol.

What is required

The two protocols are actually very similar and supporting both is quite trivial. In order to prove it was possible I have implemented a fix in a fork of this project and used it against a new server.

Reference implementation

I've started a discussion about this, which includes all the details: #237

The single commit to implement my changes are here: artran@60a93b5

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