-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send payload after initial connection #63
Comments
@meshelton What are you trying to achieve? What is the purpose? |
Basically I'm using a subscription to complete some auth flow stuff so the user doesn't have to do any work after they complete an oauth flow. I'm new to relay/graphql so I'm not sure if this is best practices but my ideal approach would be:
I haven't found a way to send the initial auth token in step 2 so the process currently looks like this:
The current approach but it would be nice to remove that extra query, not strictly necessary just a nice to have. |
You can do this if you're using apollo client. So you just pass variables to the I currently use it in my web app that requires the logged in user's email. Initially the email is blank, but once the user logs in it re-runs the subscription with the now available email. |
Is there a way to broadcast a message after the initial connection? Would love to sue the `subscribe method in my subscription but the groups haven't been set up at that point.
The text was updated successfully, but these errors were encountered: