hifiberry_interact/message-interact/index.js
module.exports = {
interact: {
actions: {
emitMessage: function(interactData, triggerResult, actionResult) {
if (triggerResult === true) {
console.error("No trigger data for action message.");
return;
}
try {
beo.bus.emit(triggerResult.target, {header: triggerResult.header, content: triggerResult.content});
} catch (error) {
console.error("Exception emitting trigger action message:", error);
}
}
}
}
};