sgqlc icon indicating copy to clipboard operation
sgqlc copied to clipboard

Add support for "graphql-transport-ws" subscription subprotocol

Open lorenzocesconetto opened this issue 9 months ago • 1 comments

🚀 Feature Request

Description

  • The subprotocol is currently hardcoded to graphql-ws.
  • But graphql-transport-ws is the newest and recommended subprotocol.

Implementation details

  • Add a subprotocol argument to WebSocketEndpoint.

Potential caveats

  • Keeping backwards compatibility, not breaking lib's API.

Acceptance criteria

  • [ ] Can subscribe to servers using graphql-transport-ws subprotocol.

Additional context and visual reference

lorenzocesconetto avatar May 19 '25 19:05 lorenzocesconetto

I don't have much time to work on this right now, can you send a PR? Just be sure to test it with pytest and pre-commit scripts before opening it, ok?

barbieri avatar Jun 04 '25 18:06 barbieri