Skip to content

Allow web-ui users to configure the payload on connection_init messages when subscribing over websockets #2717

Answered by acao
soenkehahn asked this question in Q&A / Support
Discussion options

You must be logged in to vote

This is possible by passing a custom graphql-ws client instance:

https://github.com/graphql/graphiql/blob/main/packages/graphiql-toolkit/docs/create-fetcher.md#custom-wsclient-example-using-graphql-ws

the creator of graphql-ws describes how to pass the custom parameters in another comment in this thread:

#2717

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@andreialecu
Comment options

@andreialecu
Comment options

Answer selected by acao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2181 on August 28, 2022 14:07.