Some applications, like e.g. a stockbroker application, might have realtime data requirements. It's not enough for the client to poll for new data regularly. Data should be pushed to clients as it becomes available. WunderGraph offers multiple solutions to this problem.
Any GraphQL server that supports Subscriptions works with WunderGraph out of the box. There's just one small difference between GraphQL Subscriptions using WunderGraph vs. using a regular GraphQL client.
Let's look at an example:
This GraphQL Subscription translates to the following client code:
The UI updates automatically as new data becomes available. No extra client setup, no WebSockets. Just plain HTTP/2 Streams (or a fallback to chunked encoding) for the folks who are interested in some of the details.