Introduce plugin hook to verified agents with non-recovery cores Introduce plugin hook to agent message data, should the plugin need to interact (without additional bandwidth used from those without plugins enabled)

Introduce plugin hook to verified agents with non-recovery cores Introduce plugin hook to agent message data, should the plugin need to interact (without additional bandwidth used from those without plugins enabled)

Ryan Blenis committed Oct 28, 2019 at 17:27 UTC e249dc32dada8423fdf4692f08c5f6583feb0d61
1 file changed +6
meshagent.js
+6
@@ -980,6 +980,9 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
980 }
981 });
982 }
983 + if (parent.parent.pluginHandler != null) {
984 + parent.parent.pluginHandler.callHook('hook_agentCoreIsStable', obj, parent);
985 + }
986 }
987
988 // Get the web certificate private key hash for the specified domain
@@ -1298,6 +1301,9 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
1301 break;
1302 }
1303 }
1304 + if (parent.parent.pluginHandler != null) {
1305 + parent.parent.pluginHandler.callHook('hook_processAgentData', command, obj, parent);
1306 + }
1307 }
1308 }
1309