mirror of
https://github.com/unraid/api.git
synced 2026-05-07 23:51:40 -05:00
update @unraid/core and move pubsub to core
Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019 Lime Technology Inc. All rights reserved.
|
||||
* Written by: Alexis Tyler
|
||||
*/
|
||||
|
||||
module.exports = function ($injector) {
|
||||
const { PubSub } = $injector.resolve('apollo-server');
|
||||
const pubsub = new PubSub();
|
||||
|
||||
return pubsub;
|
||||
};
|
||||
@@ -21,8 +21,8 @@ module.exports = function (GraphQLJSON, GraphQLLong, GraphQLUUID, pubsub) {
|
||||
};
|
||||
|
||||
// // Recieve test messages.
|
||||
// pubsub.subscribe('ping', (...rest) => {
|
||||
// console.log(`CHANNEL: ping DATA: ${JSON.stringify(rest, null, 2)}`);
|
||||
// pubsub.subscribe('users', (...rest) => {
|
||||
// console.log(`CHANNEL: users DATA: ${JSON.stringify(rest, null, 2)}`);
|
||||
// })
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user