@nestjs/websockets
Advanced tools
Comparing version
@@ -11,2 +11,3 @@ "use strict"; | ||
const ws_params_factory_1 = require("../factories/ws-params-factory"); | ||
const ws_metadata_constants_1 = require("./ws-metadata-constants"); | ||
class WsContextCreator { | ||
@@ -69,3 +70,3 @@ constructor(wsProxy, exceptionFiltersContext, pipesContextCreator, pipesConsumer, guardsContextCreator, guardsConsumer, interceptorsContextCreator, interceptorsConsumer) { | ||
} | ||
const metadata = this.contextUtils.reflectCallbackMetadata(instance, methodName, constants_3.PARAM_ARGS_METADATA || '') || {}; | ||
const metadata = this.contextUtils.reflectCallbackMetadata(instance, methodName, constants_3.PARAM_ARGS_METADATA) || ws_metadata_constants_1.DEFAULT_CALLBACK_METADATA; | ||
const keys = Object.keys(metadata); | ||
@@ -72,0 +73,0 @@ const argsLength = this.contextUtils.getArgumentsLength(keys, metadata); |
export declare enum WsParamtype { | ||
SOCKET = 0, | ||
PAYLOAD = 1 | ||
PAYLOAD = 3 | ||
} |
@@ -6,3 +6,3 @@ "use strict"; | ||
WsParamtype[WsParamtype["SOCKET"] = 0] = "SOCKET"; | ||
WsParamtype[WsParamtype["PAYLOAD"] = 1] = "PAYLOAD"; | ||
WsParamtype[WsParamtype["PAYLOAD"] = 3] = "PAYLOAD"; | ||
})(WsParamtype = exports.WsParamtype || (exports.WsParamtype = {})); |
{ | ||
"name": "@nestjs/websockets", | ||
"version": "6.8.2", | ||
"version": "6.8.3", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@websockets)", | ||
@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec", |
67467
0.94%84
2.44%1097
1.39%