From 89446a5d4ef5298d9db1ac49700e5ba3e4d8fd7f Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 19 Jan 2021 11:31:40 -0600 Subject: [PATCH] refactor(security): socket --- packages/socket/src/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/socket/src/index.js b/packages/socket/src/index.js index cbc72cb..cb0bc98 100644 --- a/packages/socket/src/index.js +++ b/packages/socket/src/index.js @@ -24,6 +24,16 @@ export default { }, ); }, + '@latus/http/plugins': async ( + req, + {config: {'@latus/socket': {'packets.decorate': decorators}}}, + ) => ({ + '@latus/socket': { + 'packets.decorate': decorators.filter( + (decorator) => 'server' !== decorator.split('/').pop(), + ), + }, + }), '@latus/socket/packets': (latus) => ({ Bundle: Bundle(latus), Refresh,