UNPKG

559 BTypeScriptView Raw
1import { GatewayMetadata } from '../interfaces';
2/**
3 * Decorator that marks a class as a Nest gateway that enables real-time, bidirectional
4 * and event-based communication between the browser and the server.
5 *
6 * @publicApi
7 */
8export declare function WebSocketGateway(port?: number): ClassDecorator;
9export declare function WebSocketGateway<T extends Record<string, any> = GatewayMetadata>(options?: T): ClassDecorator;
10export declare function WebSocketGateway<T extends Record<string, any> = GatewayMetadata>(port?: number, options?: T): ClassDecorator;