| 1 2 3 4 5 6 7 8 9 10 11 12 | 1x 1x 3x 3x 3x | import { GATEWAY_SERVER_METADATA } from '../constants';
/**
* Attaches native Web Socket Server to a given property.
*/
export const WebSocketServer = (): PropertyDecorator => {
return (target: object, propertyKey: string | symbol) => {
Reflect.set(target, propertyKey, null);
Reflect.defineMetadata(GATEWAY_SERVER_METADATA, true, target, propertyKey);
};
};
|