@nestjs/websockets
Version:
WebSockets for NestJS: gateways with message handlers, guards, pipes and interceptors, on Socket.IO or ws.
6 lines (5 loc) • 395 B
TypeScript
import { WsExceptionsHandler } from '../exceptions/ws-exceptions-handler.js';
export declare class WsProxy {
create(targetCallback: (...args: unknown[]) => Promise<any>, exceptionsHandler: WsExceptionsHandler, targetPattern?: string): (...args: unknown[]) => Promise<any>;
handleError<T>(exceptionsHandler: WsExceptionsHandler, args: unknown[], error: T): void | PromiseLike<unknown>;
}