diff --git a/src/plugin.ts b/src/plugin.ts index 2548756..07b2fbd 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -63,7 +63,7 @@ export class PluginApiManager { getRpcServer().registerMethod(pluginName, methodName, method); }, loadPlugin: getPluginAPI().loadPlugin, - getMethods: getRpcServer().getMethods, + getMethods: getRpcServer().getMethods.bind(getRpcServer()), }; } }