Implement sending messages from a server add-on

Reviewed By: mweststrate

Differential Revision: D34074383

fbshipit-source-id: de85e7a22dc9bb780163fc5b522708e8bc976df3
This commit is contained in:
Andrey Goncharov
2022-02-28 03:50:34 -08:00
committed by Facebook GitHub Bot
parent 842b2c810a
commit db976d5113
6 changed files with 82 additions and 19 deletions

View File

@@ -88,7 +88,7 @@ export class FlipperServerImpl implements FlipperServer {
// given flipper-dump, it might make more sense to have the plugin command
// handling (like download, install, etc) moved to flipper-server & app,
// but let's keep things simple for now
this.pluginManager = new PluginManager();
this.pluginManager = new PluginManager(this);
server.addListener('error', (err) => {
this.emit('server-error', err);