UNPKG

@nestjs/websockets

Version:

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

7 lines (6 loc) • 330 B
import { WsParamtype } from '../enums/ws-paramtype.enum.js'; export const DEFAULT_CALLBACK_METADATA = { [`${WsParamtype.ACK}:2`]: { index: 2, data: undefined, pipes: [] }, [`${WsParamtype.PAYLOAD}:1`]: { index: 1, data: undefined, pipes: [] }, [`${WsParamtype.SOCKET}:0`]: { index: 0, data: undefined, pipes: [] }, };