UNPKG

@nestjs/websockets

Version:

WebSockets for NestJS: gateways with message handlers, guards, pipes and interceptors, on Socket.IO or ws.

9 lines (8 loc) • 206 B
/** * @publicApi */ export interface NestGateway { afterInit?: (server: any) => void; handleConnection?: (...args: any[]) => void; handleDisconnect?: (client: any, reason?: string) => void; }