mirror of
https://github.com/unraid/api.git
synced 2026-01-16 13:39:51 -06:00
improvement(module:graphql/index): add ws-clients to $injector
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user