v-daemon
Version:
Daemon script for v-spot-client
20 lines (14 loc) • 443 B
JavaScript
/**
* Example to call daemonized script
*/
const vSpot = require('v-spot')
;(async () => {
const spot = vSpot().client()
await spot.connect('v-spot.cloud.com')
// By default, subject name is generated from script name
const example01 = await spot.use('jp.realglobe.v-daemon.example01')
// Send the signal to daemon script via server
await example01.sayHi('can you hear me?', 'really?')
})()