diff --git a/buildStripDefs.js b/buildStripDefs.js index a9b2d3b..0e29a34 100644 --- a/buildStripDefs.js +++ b/buildStripDefs.js @@ -790,6 +790,20 @@ export function buildStripDefs(self) { color: combineRgb(192, 192, 192), bgcolor: combineRgb(0, 92, 128), }, + subscribe: async (feedback, context) => { + const theChannel = feedback.options.theChannel + const fbWhich = feedback.feedbackId + if (theChannel) { + self.xStat[self.fbToStat[fbWhich + theChannel]].fbSubs.add(feedback.id) + } + }, + unsubscribe: async (feedback, context) => { + const theChannel = feedback.options.theChannel + const fbWhich = feedback.feedbackId + if (theChannel) { + self.xStat[self.fbToStat[fbWhich + theChannel]].fbSubs.delete(feedback.id) + } + }, callback: async (feedback, context) => { const theChannel = feedback.options.theChannel const fbWhich = feedback.feedbackId diff --git a/package.json b/package.json index e2e181b..141cab5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "behringer-xair", - "version": "2.4.0", + "version": "2.4.1", "type": "module", "main": "index.js", "scripts": {