Skip to main content
100%

Gist 2492d95a9b8f1ea7c4829b30d896982a

✓ Published0🌍 Public
UUtopiah
Last edited Apr 9, 2022
Created on Apr 9, 2022

This example shows a live-updating 3D model in a Hubs virtual room, where the displayed GLB asset refreshes automatically whenever new data arrives. It uses an EventSource (Server-Sent Events) to listen for messages from a remote Glitch server, and on each message it updates the `media-loader` component’s `src` attribute by appending a timestamp to the GLB URL, forcing a reload. The code relies on the custom `hubs_utils` helper to find the first matching element, and it demonstrates a simple SSE-driven pipeline for dynamic scene updates without manual intervention.

AI-generated description

Similar vizzes