@coopenomics/sdk
    Preparing search index...

    Type Alias SubscriptionToGraphQL<Z, T, SCLR>

    type SubscriptionToGraphQL<Z, T, SCLR extends ScalarDefinition> = {
        error: (
            fn: (e: { data?: InputType<T, Z, SCLR>; errors?: string[] }) => void,
        ) => void;
        off: (
            fn: (
                e: {
                    code?: number;
                    data?: InputType<T, Z, SCLR>;
                    message?: string;
                    reason?: string;
                },
            ) => void,
        ) => void;
        on: (fn: (args: InputType<T, Z, SCLR>) => void) => void;
        open: () => void;
        ws: WebSocket;
    }

    Type Parameters

    Index

    Properties

    Properties

    error: (
        fn: (e: { data?: InputType<T, Z, SCLR>; errors?: string[] }) => void,
    ) => void
    off: (
        fn: (
            e: {
                code?: number;
                data?: InputType<T, Z, SCLR>;
                message?: string;
                reason?: string;
            },
        ) => void,
    ) => void
    on: (fn: (args: InputType<T, Z, SCLR>) => void) => void
    open: () => void
    ws: WebSocket