From caad1083b0ad7dbcbcfaf23513f9ba37efdff468 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Thu, 17 Oct 2019 15:43:01 +1030 Subject: [PATCH] improvement(module:graphql/index): add ws-clients to $injector --- app/graphql/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/graphql/index.js b/app/graphql/index.js index eeacb4007..e99363168 100644 --- a/app/graphql/index.js +++ b/app/graphql/index.js @@ -311,6 +311,8 @@ module.exports = function ( // // If we don't wait a tick `user` becomes undefined. process.nextTick(() => { clients.delete(webSocket); + + $injector.registerValue('ws-clients', clients); }); } },