From 442a2db65eb7369307537cb24612444965b87dca Mon Sep 17 00:00:00 2001 From: enzotar Date: Thu, 26 Feb 2026 09:45:07 -0800 Subject: [PATCH] fix: use explicit /peer/counter channel for streaming-counter The 'default' relay channel accumulated stale Source connections from previous sessions, causing frame delivery issues to Receivers on /stream/default. Moving counter to an explicit /peer/counter channel (matching clock, stats, mood pattern) fixes the composition dashboard. All 4 streams now show live data: Count: 3, Doubled: 6. --- examples/compose-dashboard.ds | 2 +- examples/streaming-counter.ds | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/compose-dashboard.ds b/examples/compose-dashboard.ds index 45a19cc..0302ce3 100644 --- a/examples/compose-dashboard.ds +++ b/examples/compose-dashboard.ds @@ -16,7 +16,7 @@ -- -- Open the built file in a browser. -let counter = stream from "ws://localhost:9100/stream/default" +let counter = stream from "ws://localhost:9100/stream/counter" let clock = stream from "ws://localhost:9100/stream/clock" let stats = stream from "ws://localhost:9100/stream/stats" let mood = stream from "ws://localhost:9100/stream/mood" diff --git a/examples/streaming-counter.ds b/examples/streaming-counter.ds index d0fb620..b1edfcf 100644 --- a/examples/streaming-counter.ds +++ b/examples/streaming-counter.ds @@ -10,7 +10,7 @@ let count = 0 let doubled = count * 2 let message = "Streaming Counter" -stream counter on "ws://localhost:9100" { mode: signal, output: count, doubled } +stream counter on "ws://localhost:9100/peer/counter" { mode: signal, output: count, doubled } view counter = column [