Skip to content

Commit

Permalink
only non-specific scene/device should monitor latency data
Browse files Browse the repository at this point in the history
  • Loading branch information
mwfarb committed Aug 13, 2024
1 parent 3f246bc commit 79a3928
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions users/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ def generate_arena_token(
pubs, subs = pubsub_api_v1(
user, username, realm, namespace, sceneid, deviceid, ids, perm)

# non-api-versioned topics
# network graph
subs.append("$NETWORK")
# only non-specific scene/device should monitor latency data
if not sceneid:
subs.append("$NETWORK")
# every client can/should publish latency data
pubs.append("$NETWORK/latency")

if len(subs) > 0:
Expand Down

0 comments on commit 79a3928

Please sign in to comment.