Invokable Functions

Invokable Functions can be called from the client at will. They can be passed arguments and can return a value.

const { InvokableFunction } = require("@adamite/service-functions");

module.exports = {
  add: new InvokableFunction((args) => {
    return args.x + args.y;
  })
};

Last updated