@webex/plugin-meetings 3.12.0-next.53 → 3.12.0-next.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -643,6 +643,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
643
643
  * @returns {void}
644
644
  */
645
645
  (0, _defineProperty3.default)(_this, "processRelayEvent", function (e) {
646
+ if (!_this.isRelayEventRouteValid(e)) {
647
+ return;
648
+ }
646
649
  switch (e.data.relayType) {
647
650
  case _constants3.REACTION_RELAY_TYPES.REACTION:
648
651
  if (
@@ -6555,6 +6558,28 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6555
6558
  }
6556
6559
  return startTranscription;
6557
6560
  }())
6561
+ }, {
6562
+ key: "isRelayEventRouteValid",
6563
+ value:
6564
+ /**
6565
+ * Verifies the relay event was delivered for the active LLM session binding.
6566
+ * @param {RelayEvent} event Event object coming from LLM Connection
6567
+ * @returns {boolean}
6568
+ */
6569
+ function isRelayEventRouteValid(event) {
6570
+ var _event$headers;
6571
+ var route = event === null || event === void 0 ? void 0 : (_event$headers = event.headers) === null || _event$headers === void 0 ? void 0 : _event$headers.route;
6572
+ if (!route) {
6573
+ return true;
6574
+ }
6575
+ var llm = this.webex.internal.llm;
6576
+ var isPracticeSession = llm.isConnected(_constants.LLM_PRACTICE_SESSION);
6577
+ var expectedBinding = isPracticeSession ? llm.getBinding(_constants.LLM_PRACTICE_SESSION) : llm.getBinding();
6578
+ if (!expectedBinding || route === expectedBinding) {
6579
+ return true;
6580
+ }
6581
+ return false;
6582
+ }
6558
6583
  }, {
6559
6584
  key: "stopTranscription",
6560
6585
  value: