Function: createSubscription

createSubscription<TSubscriptionPayload>(config, requestSubscriptionFn?): void

Type parameters

Name Type
TSubscriptionPayload extends OperationType

Parameters

Name Type
config MaybeAccessor<GraphQLSubscriptionConfig<TSubscriptionPayload>>
requestSubscriptionFn? <TSubscription>(environment: Environment, config: GraphQLSubscriptionConfig<TSubscription>) => Disposable

Returns

void