From 5f73683eb47b064f87e15347c3ca9b95cb8019eb Mon Sep 17 00:00:00 2001 From: Ivan Liang Date: Fri, 25 Aug 2023 12:18:32 -0400 Subject: [PATCH] fix: bind publish to ARENA.Mqtt --- src/systems/core/arena.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/core/arena.js b/src/systems/core/arena.js index 068aefd0e..8b20e1871 100644 --- a/src/systems/core/arena.js +++ b/src/systems/core/arena.js @@ -35,7 +35,7 @@ AFRAME.registerSystem('arena-scene', { if (ARENA.params.debug) { ARENAMqttConsole.init({ dbgTopic: `${ARENA.params.realm}/proc/debug/stdout/${ARENA.camName}`, - publish: ARENA.Mqtt.publish, + publish: ARENA.Mqtt.publish.bind(ARENA.Mqtt), }); } });