UNPKG

@nestjs/websockets

Version:

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

7 lines (6 loc) • 224 B
import { WsParamtype } from '../enums/ws-paramtype.enum.js'; import { createWsParamDecorator } from '../utils/param.utils.js'; /** * @publicApi */ export const ConnectedSocket = createWsParamDecorator(WsParamtype.SOCKET);