property GraphqlWsTransportOptions.onConnect

Called on connection_init BEFORE the ack. Returning false closes the socket with 4403: Forbidden. May write to conn.data to establish identity for the default resolver context.

Type

(info: GraphqlConnectionInfo) => false | void | Promise<false | void>

Usage

import { type GraphqlWsTransportOptions } from "graphql-plugin/src/index.ts";