Subscribe to LEAFNODE.CONNECT and LEAFNODE.DISCONNECT events #5902
-
Hi, I am trying to subscribe to LEAFNODE.CONNECT and LEAFNODE.DISCONNECT events. My hub is configured as
and leaf node is configured as
When I subscribe to events on hubusing command:
I never receive LEAFNODE.CONNECT and LEAFNODE.DISCONNECT events. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
From the system account you can subscribe to the following.
This will show all connections of all types for all accounts. The third token is the account. e.g.
If you want only the leafnodes, you can subscribe to the following, again from the system account.
e.g.
Verified with Synadia Cloud. |
Beta Was this translation helpful? Give feedback.
-
Hi, I managed to receive connections when I subscribe to $SYS.ACCOUNT..CONNECT, but still I can't receive anything when I subscribe to $SYS.ACCOUNT..LEAFNODE.>. My docker-compose is
nats-main.conf
and nats-leaf.conf is:
|
Beta Was this translation helpful? Give feedback.
From the system account you can subscribe to the following.
$SYS.ACCOUNT.*.CONNECT
This will show all connections of all types for all accounts. The third token is the account.
e.g.