Follow one real subscription from its first snapshot through a lost connection, an access check, and a new identity.
Lontra Creek, its people, and its otters are fictional. The gateway and browser SDK are real. Connecting to the field station…
Opening your volunteer session…
The field station is unavailable. The rest of the site still works. Run this demo locally with npm install and npm run dev from the demo repository.
Your session was closed after ten minutes idle or hidden.
1. Dawn survey
You are a volunteer at Kestrel Bend. The gauge first authorizes, then synchronizes, receives a snapshot, and becomes live. Watch the SDK timeline below.
Why it matters: behind this, the app's own handlers ran. authenticate verified who you are, authorize allowed this gauge, and snapshot read its current state. StreamOtter wires them together.
2. The creek rises
Every update is a full state with a newer revision. The simulation chooses its own weather; this chapter observes it.
Why it matters: no update is a partial change, so a missed one can't leave the view half-updated, and the SDK never lets an older revision replace a newer one.
Collecting readings to compare the last twelve simulation ticks…
3. Into Slate Canyon
Cut this page's connection. Your last values stay visible and become stale while the creek continues upstream.
4. The protected holt
Den locations are restricted to researchers. A volunteer request is refused with no data. After chapter 5, your researcher identity has access; restart as a volunteer to repeat the denial.
Not requested.
Why it matters: the decision comes from the app's own authorize handler, and the gateway enforces it: it never sends data a handler hasn't approved. The handler is under the hood below.
5. Hand over the tablet
The field biologist is a different subject. Changing identity closes the old subscriptions with UNAUTHENTICATED; fresh subscriptions can read the protected holt.
Why it matters: access follows the person, not the screen, so one person's view is never carried over to the next.
Signed in as a volunteer.
6. Log a sighting
Your private notebook is written through the site API, published to Kafka, then delivered through your own subscription.
Why it matters: your sighting appears only after it has gone through Kafka and the gateway, so the page shows what was actually recorded, not a guess. Only you can read your notebook: the app's authorize handler checks that it's yours.
Checking whether the field station uses Kafka…
Live SDK events
The public SDK exposes revisions and snapshots; the timeline reports only events received by this browser.
Kestrel Bend · LC-02
Subscription idle
Flow
— cfs
Water
— °C
Revision
—
Snapshot count
0
Snapshot count labels observed synchronization attempts; it is not the gateway's internal epoch ID.