Replies: 1 comment
-
Hi! I don't see anything particularly wrong in your description above, it sounds right to me. Since AnyCable doesn't have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I have a question about triggering subscriptions, as I am failing to understand why my current code does not work. Here are my types:
When I try to trigger
AppSchema.subscriptions.trigger(:chat_updated, {}, Chat.first, scope: 1)
, it works. However, when I try to trigger the newly addedchat_update
asAppSchema.subscriptions.trigger(:chat_update, {}, Chat.first, scope: 1)
, nothing happens on both my rails console and server logs.When I go back and update the types like this:
And run the trigger as
AppSchema.subscriptions.trigger(:chat_updated, {}, Chat.first, scope: 1)
, it works!So it feels like I am missing a step when I attempt to add a new subscription (
chat_update
in this case). Does something pop up in anyone's mind about what I might be doing wrong or missing?Additional Info
GraphQL::AnyCable
.chatUpdate
under the subscriptions:app/javascript/graphql/schema.graphql
andapp/javascript/graphql/schema.json
are generated correctly.Beta Was this translation helpful? Give feedback.
All reactions