Gist e788d79614e145d046a33bd7b28a7c55
✓ Published0🌍 Public
UUtopiah
Last edited Jun 6, 2020
Created on Jun 2, 2020
This example connects a Mozilla Hubs virtual room to a Phoenix channel via the Reticulum client, logging real-time chat messages and presence rollups as they arrive. The code subscribes to channel events with `reticulumCh.channel.on` and tracks room occupancy through `PresenceRollups`, sending a test message with `sendMessage` after five seconds. It uses `HubStats` to record arrival timestamps and `dotenv` for configuration, demonstrating how to build a bot that monitors live activity in a Hubs room.
AI-generated description