Skip to content

Listeners

Template events

If widget has webssocket enabled. You can listen to any changes made template through the event webssocket.

js
templateInstance.on('watch', templateData => {
  console.log(templateData)
})

templateInstance.save() // will trigger watch event

README

Note that generated thumbnails will take a while to update. Which will also trigger the watch event when finished.