VerifyClientCallbackAsync: ((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.

Type declaration

    • (info, callback): void
    • Parameters

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

            Returns void

      Returns void