urql Subscriptions

GraphQL-Ruby currently supports using urql with the Pusher implementation. For example:

import SubscriptionExchange from "graphql-ruby-client/subscriptions/SubscriptionExchange"
import Pusher from "pusher"
import { Client, defaultExchanges, subscriptionExchange } from 'urql'

const pusherClient = new Pusher("your-app-key", { cluster: "us2" })
const forwardToPusher = SubscriptionExchange.create({ pusher: pusherClient })

const client = new Client({
  url: '/graphql',
  exchanges: [
      forwardSubscription: forwardToPusher

Want to use urql with another subscription backend? Please open an issue.