KC's Workspace
    Preparing search index...
    VerifyClientCallbackAsync: (
        info: { origin: string; req: IncomingMessage; secure: boolean },
        callback: (
            res: boolean,
            code?: number,
            message?: string,
            headers?: OutgoingHttpHeaders,
        ) => void,
    ) => void

    VerifyClientCallbackAsync is an asynchronous callback used to inspect the incoming message. The return value (boolean) of the function determines whether or not to accept the handshake.

    Type Declaration

      • (
            info: { origin: string; req: IncomingMessage; secure: boolean },
            callback: (
                res: boolean,
                code?: number,
                message?: string,
                headers?: OutgoingHttpHeaders,
            ) => void,
        ): void
      • Parameters

        • info: { origin: string; req: IncomingMessage; secure: boolean }
        • callback: (
              res: boolean,
              code?: number,
              message?: string,
              headers?: OutgoingHttpHeaders,
          ) => void

        Returns void