callLocalServiceMethod()

in lib/connection.ts [158:164]


  callLocalServiceMethod(methodName: string, args: any[]) {
      const method = propertyByPath<Function>(this.serviceMethods, methodName);
    if (!method) {
      throw new Error(`Service method ${methodName} is not registered`);
    }
    return Promise.resolve(method.call(this, ...args));
  }