DEV Community

Sabbir Ahmed Siddiquee
Sabbir Ahmed Siddiquee

Posted on

How do I use two different websocket url based on context in react-apollo?

I have got a problem.

The scenario is we have two graphql servers.

I have split them passing context in the query/mutation options.

It works but I also have two different websocket setup.

As we can split subscription using hasSubscription(operation.query). It can be split only depending on query type.

Top comments (0)