(token: string)
| 2 | import { createClient } from 'graphql-ws'; |
| 3 | |
| 4 | export function createSubscriptionClient(token: string): Client { |
| 5 | return createClient({ |
| 6 | url: process.env.NEXT_PUBLIC_SUBS_URL ?? '', |
| 7 | lazy: false, |
| 8 | connectionParams: { token }, |
| 9 | }); |
| 10 | } |
no test coverage detected