improvement(module:graphql/index): add ws-clients to $injector

This commit is contained in:
Alexis Tyler
2019-10-17 15:43:01 +10:30
parent a57bad4b62
commit caad1083b0

View File

@@ -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);
});
}
},