Skip to content

Hybrid HTTP / WS transports #746

Answered by n1ru4l
AadamZ5 asked this question in Q&A
Oct 23, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

In your GraphQL network layer, you can use the isLiveQueryOperationDefinitionNode function for identifying whether the operation is a live query and then use the corresponding transport you want to use.

E.g. if you are using apollo client you could use the split link for this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AadamZ5
Comment options

Answer selected by AadamZ5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants