UNPKG

506 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.WebSocketServer = void 0;
4const constants_1 = require("../constants");
5/**
6 * Attaches native Web Socket Server to a given property.
7 *
8 * @publicApi
9 */
10const WebSocketServer = () => {
11 return (target, propertyKey) => {
12 Reflect.set(target, propertyKey, null);
13 Reflect.defineMetadata(constants_1.GATEWAY_SERVER_METADATA, true, target, propertyKey);
14 };
15};
16exports.WebSocketServer = WebSocketServer;