refactor(security): socket

This commit is contained in:
cha0s 2021-01-19 11:31:40 -06:00
parent 5d84e2337c
commit 89446a5d4e

View File

@ -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,