Replies: 1 comment 3 replies
-
...but why is the issue here and not on Daphne? 🤔 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having problems getting broadcaster to work with Daphne. Specifically, I would like to get this simple example to work:
Ariadne GraphQL Subscription Example (code below)
The app works as intended when run with Uvicorn.
By adding print statements, I was able to deduce, that the
async for event in subscriber:
-loop is never entered thoughbroadcast.publish(...)
is executed. This is only the case when run with Daphne. When run with Uvicorn, the loop is entered as expected and the result for the subscription is returned.Unfortunately, I am dependent on Daphne, so I cannot switch.
Any help would be greatly appreciated.
Here is the code:
Beta Was this translation helpful? Give feedback.
All reactions