Type alias SubscriptionToGraphQL<Z, T, SCLR>
SubscriptionToGraphQL<Z, T, SCLR>: { error: ((fn) => void); off: ((fn) => void); on: ((fn) => void); open: (() => void); ws: WebSocket; } Type declaration
error: ((fn) => void)
- (fn): void
Parameters
- fn: ((e) => void)
- (e): void
Parameters
- e: {
data?: InputType<T, Z, SCLR>;
errors?: string[];
}Optional
errors?: string[]
Returns void
Returns void
off: ((fn) => void)
- (fn): void
Parameters
- fn: ((e) => void)
- (e): void
Parameters
- e: {
code?: number;
data?: InputType<T, Z, SCLR>;
message?: string;
reason?: string;
}Optional
code?: number
Optional
message?: string
Optional
reason?: string
Returns void
Returns void
on: ((fn) => void)
open: (() => void)
ws: WebSocket