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