DjangoChannelsGraphqlWs
DjangoChannelsGraphqlWs copied to clipboard
Django Channels based WebSocket GraphQL server with Graphene-like subscriptions
The Library currently supports the `subscriptions-transport-ws` subprotocol, but this library is no longer being maintained and recommends developers migrate to the [graphql-ws](https://github.com/enisdenjo/graphql-ws) library instead, which uses the `graphql-transport-ws` subprotocol, making...
The socket server closes websocket connections from the graphql-ws client library: ``` File "/usr/local/lib/python3.7/site-packages/channels_graphql_ws/graphql_ws_consumer.py", line 233, in connect f"WebSocket client does not request for the subprotocol " AssertionError: WebSocket client...
This pull request adds two features: 1. ~~Per-operation context - allows sharing any data between different calls to `Subscription.publish` for the same subscription (and the same connection).~~ 2. Initial payload...
Fixes #77, requires pypi release
Fixes #82
Bumps [django](https://github.com/django/django) from 3.2.6 to 3.2.13. Commits 08e6073 [3.2.x] Bumped version for 3.2.13 release. 9e19acc [3.2.x] Fixed CVE-2022-28347 -- Protected QuerySet.explain(**options) against... 2044dac [3.2.x] Fixed CVE-2022-28346 -- Protected QuerySet.annotate(), aggregate(),...
On `import channels_graphql_ws`, `promise.promise.async_instance.disable_trampoline()` is called, breaking DataLoaders. In the code there is a reference to https://github.com/syrusakbary/promise/issues/57#issuecomment-406778476 which indicates this is needed due to Promise not being thread-safe. This should...
#91 #67 #55
If response data contains a Promise objects (say, Dataloaders were used), encoding to json these objects will silently fail.
I have a middleware that populates info.context with several data loaders that are needed to pull in related objects. When I add the middleware to the GraphQL WS consumer, the...