How to send a message periodically & other questions

You need to create a custom module, you could then setup a periodic osc message like this:

setInterval(()=>{
    send('127.0.0.1', 5555, '/ping')
}, 1000)

module.exports = {
  // init, oscInFilter, oscOutFilter... see docs
}