I’m wanting to run a function upon a click event for all clients that displays a toast message and also plays a sound.
One solution that I’ve found to work is to define an object in a collection, create a
Meteor.setInterval function and occasionally tick a certain amount of time to check for changes in the database. I’d prefer if this was reactive, however.
Is there a more elegant solution to doing this?