1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Many server fixes and more stable mesh agent.

This commit is contained in:
Ylian Saint-Hilaire 2017-10-03 18:31:20 -07:00
parent 5474f1d386
commit bcf641eaac
23 changed files with 551 additions and 314 deletions

View file

@ -834,6 +834,15 @@ function createMeshCore(agent) {
response = JSON.stringify(http.parseUri(args['_'][0]));
break;
}
case 'modules': {
response = "Modules: " + JSON.stringify(addedModules);
break;
}
case 'callmodule': {
var w = require('MyTestModule');
response = "x=" + w.getValue();
break;
}
default: { // This is an unknown command, return an error message
response = 'Unknown command \"' + cmd + '\", type \"help\" for list of avaialble commands.';
break;