You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include subscribed subjects in the account heartbeat (SERVER.CONNS)?
#8936
I was wondering if it'd be possible/useful to include the subjects per leaf in the heartbeat? Use case is that different leaves can have different subscriptions and our UI would e.g. only show buttons/actions for leaves where they can actually reply.
Currently, we track leaf nodes from the system account, one account per leaf. The $SYS.ACCOUNT.<acc>.SERVER.CONNS heartbeat works well for presence.
So if we want to know which subjects each leaf subscribes to, that means polling $SYS.REQ.ACCOUNT.<acc>.LEAFZ with subscriptions: true for every account, while the heartbeat only has num_subscriptions. As far as I understand, we didn't implement this yet.
Would you accept an opt-in option to add the subject list (or just a hash of it, so we know when to pull LEAFZ) to that heartbeat? A separate event would work for us too.
#312 mentioned making subscription info a system event, but I couldn't find a follow-up. Happy to help with a PR.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I was wondering if it'd be possible/useful to include the subjects per leaf in the heartbeat? Use case is that different leaves can have different subscriptions and our UI would e.g. only show buttons/actions for leaves where they can actually reply.
Currently, we track leaf nodes from the system account, one account per leaf. The
$SYS.ACCOUNT.<acc>.SERVER.CONNSheartbeat works well for presence.So if we want to know which subjects each leaf subscribes to, that means polling
$SYS.REQ.ACCOUNT.<acc>.LEAFZwithsubscriptions: truefor every account, while the heartbeat only hasnum_subscriptions. As far as I understand, we didn't implement this yet.Would you accept an opt-in option to add the subject list (or just a hash of it, so we know when to pull LEAFZ) to that heartbeat? A separate event would work for us too.
#312 mentioned making subscription info a system event, but I couldn't find a follow-up. Happy to help with a PR.
All reactions