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

      Type alias VerifyClientCallbackSync<Request>

      VerifyClientCallbackSync<Request>: ((info) => boolean)

      Type Parameters

      Type declaration

        • (info): boolean
        • VerifyClientCallbackSync is a synchronous 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

          Returns boolean