UNPKG

@nestjs/websockets

Version:

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

6 lines (5 loc) • 307 B
import { WsParamtype } from '../enums/ws-paramtype.enum.js'; import { createPipesWsParamDecorator } from '../utils/param.utils.js'; export function MessageBody(propertyOrPipe, optionsOrPipe, ...pipes) { return createPipesWsParamDecorator(WsParamtype.PAYLOAD)(propertyOrPipe, optionsOrPipe, ...pipes); }