Intergrate ServerAddOn with PluginManager

Reviewed By: lblasa

Differential Revision: D34042338

fbshipit-source-id: 2ae3992738e647075f19c4dba0ebfb01e6c12b8f
This commit is contained in:
Andrey Goncharov
2022-02-28 03:50:34 -08:00
committed by Facebook GitHub Bot
parent 016299b374
commit a60865f0be
3 changed files with 41 additions and 4 deletions

View File

@@ -421,7 +421,7 @@ export class FlipperServerImpl implements FlipperServer {
'plugin-source': (path) => this.pluginManager.loadSource(path),
'plugins-server-add-on-start': (pluginName) =>
this.pluginManager.startServerAddOn(pluginName),
'plugins-server-add-on-stop': (pluginName) =>
'plugins-server-add-on-stop': async (pluginName) =>
this.pluginManager.stopServerAddOn(pluginName),
'doctor-get-healthchecks': getHealthChecks,
'doctor-run-healthcheck': runHealthcheck,