sys_topics.conf.example 841 B

12345678910111213141516171819202122232425
  1. ##--------------------------------------------------------------------
  2. ## System Topic
  3. ##
  4. ## Publishing client lifecycle events to "$SYS" topics
  5. ##--------------------------------------------------------------------
  6. ## Note: This is an example of how to configure this feature
  7. ## you should copy and paste the below data into the emqx.conf for working
  8. sys_topics {
  9. ## Time interval of publishing `$SYS` messages
  10. sys_msg_interval = 1m
  11. ## Time interval for publishing following heartbeat messages:
  12. ## - `$SYS/brokers/<node>/uptime`
  13. ## - `$SYS/brokers/<node>/datetime`
  14. sys_heartbeat_interval = 30s
  15. ## Client events messages toggle
  16. sys_event_messages = {
  17. client_connected = true
  18. client_disconnected = true
  19. client_subscribed = false
  20. client_unsubscribed = false
  21. }
  22. }