examples/with-subscriptions-via-fetch/README.md
This example shows urql in use with subscriptions running via a plain fetch
HTTP request to GraphQL Yoga. This uses the GraphQL Server-Sent
Events protocol, which means that
the request streams in more results via a single HTTP response.
This example also includes Graphcache "Cache Updates" to update a list with incoming items from the subscriptions.
To run this example install dependencies and run the start script:
yarn install
yarn run start
# or
npm install
npm run start
This example contains:
urql bindings and a React app with a client set up in src/App.jsxgraphql-yoga server set up to test subscriptions in server/.