1
0
Fork 0
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:
Ylian Saint-Hilaire 2021-02-02 23:31:44 -08:00
parent 6629a86339
commit 7e13633499
76 changed files with 124 additions and 80 deletions

View file

@ -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;