MCPcopy Create free account
hub / github.com/dailydotdev/apps / createSubscriptionClient

Function createSubscriptionClient

packages/shared/src/graphql/subscriptions.ts:4–10  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

createClientFunction · 0.50

Tested by

no test coverage detected