const { bridge } = require('../../dist/bridge'); function fib(n) { if (n <= 1) { return 1; } return fib(n - 1) + fib(n - 2); } bridge({ fib: (payload) => { console.log(`fib ${payload} task start`); const val = fib(payload); console.log(`fib ${payload} task end: `, val); }, });