@nestjs/websockets
Version:
WebSockets for NestJS: gateways with message handlers, guards, pipes and interceptors, on Socket.IO or ws.
14 lines (13 loc) • 584 B
TypeScript
import type { ArgumentsHost } from '@nestjs/common';
import { WsException } from '../errors/ws-exception.js';
import { BaseWsExceptionFilter } from './base-ws-exception-filter.js';
import { type ExceptionFilterMetadata } from '@nestjs/common/internal';
/**
* @publicApi
*/
export declare class WsExceptionsHandler extends BaseWsExceptionFilter {
private filters;
handle(exception: Error | WsException, host: ArgumentsHost): void;
setCustomFilters(filters: ExceptionFilterMetadata[]): void;
invokeCustomFilters<T = any>(exception: T, args: ArgumentsHost): boolean;
}