Velta Edge Events is a secure cloud based messaging system designed for high scalability used by production at Pandabase.
import * as Event from "@veltahq/events";
const event = new Event(process.env.SECRET as string);
(async() => {
try {
await event.messages.send({
url: 'https://events.velta.dev',
message: JSON.stringify({ "payload": {} }),
retry: { enabled: true, times: 3 },
});
await event.jobs.create({
'name': 'db backups', url: '', syntax: '5 * * * *'
});
} catch (e) {
console.log(e);
}
})();