⚠️ Internal: This API is not publically exported by the package.

      Type alias VerifyClientCallbackAsync<Request>

      VerifyClientCallbackAsync<Request>: ((info, callback) => void)

      Type Parameters

      Type declaration

        • (info, callback): 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.

          Parameters

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

                Returns void

          Returns void