mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added Firebase Cloud Messaging Relay.
This commit is contained in:
parent
6629a86339
commit
7e13633499
76 changed files with 124 additions and 80 deletions
|
@ -1319,6 +1319,14 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
r = parent.db.getBackupConfig();
|
||||
break;
|
||||
}
|
||||
case 'firebase': {
|
||||
if (parent.parent.firebase == null) {
|
||||
r = "Firebase push messaging not supported";
|
||||
} else {
|
||||
r = JSON.stringify(parent.parent.firebase.stats, null, 2);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: { // This is an unknown command, return an error message
|
||||
r = 'Unknown command \"' + cmd + '\", type \"help\" for list of available commands.';
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue