With Subscriptions via Fetch#
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:
- The
urqlbindings and a React app with a client set up insrc/App.jsx - A local
graphql-yogaserver set up to test subscriptions inserver/.