@nestjs/websockets
Version:
Nest - modern, fast, powerful node.js web framework (@websockets)
6 lines (5 loc) • 307 B
JavaScript
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);
}