trakteerjs
    Preparing search index...

    Type Alias VerifyClientCallbackAsync<Request>

    VerifyClientCallbackAsync: (
        info: { origin: string; req: Request; 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 Parameters

    Type declaration

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

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

        Returns void