Ticktok.io JS Client
July 23, 2019 ยท View on GitHub
Description
This is a Javascript client for Ticktok.io. It allows to easily creating new clocks and invoke actions on ticks.
Installation
npm i ticktok
Examples
Register an action for a clock
const ticktok = require('ticktok')
ticktok('https://ticktok', 'token')
.schedule({ name: 'kuku', schedule: 'every.10.seconds'}, (err, tick) => { console.log('tick') })
Send a tick
const ticktok = require('ticktok')
ticktok('https://ticktok', 'token').tick({ name: 'popo', schedule: '@Never' })
Community
Have some questions/ideas? Chat with us on Gitter