Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account

    Set Up GraphQL Subscriptions with Urql


    In this lesson, we set up our urql client with GraphQL subscriptions.

    Urql doesn't support subscriptions by default. We import the subscriptionExchange along with defaultExchanges to pass to our urql client. Next, we import SubscriptionClient from subscriptions-transport-ws which takes a websocket URL.