UNPKG

ldn-inbox-server

Version:

A demonstration Event Notifications Inbox server

16 lines (14 loc) 399 B
const { setTimeout } = require('timers/promises'); // Default notification handler that does nothing async function handle({path,options}) { try { console.log(path); console.log(options); await setTimeout(1000); return { path, options, success: true }; } catch (e) { return { path, options, success: false }; } } module.exports = { handle };