voelinctl: probe-stream, how a late TS6 client can find a running stream

The server announces a stream only to the clients in the streamer's channel
when it starts; clients that arrive later see only client_is_streaming. To
find out what the server offers instead, probe-stream runs two clients:
A creates a channel and starts a stream, B arrives afterwards and tries
candidate commands from another channel and from A's channel
(requeststreaminfo spellings, clientgetvariables, clientinfo, list-like
command names, joinstreamrequest with the learned id), A tries updatestream
and client_meta_data. Every command both clients exchange is printed raw
through a listener on the tsproto connection (tsclientlib's unstable API),
so notifications the declarations do not know yet show up too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-27 03:39:40 +00:00
1 parent fd36372243
commit 1fa6095a5f
5 files changed
+487 -2

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ pub(crate) async fn pump(
}
}
async fn wait_connected(con: &mut Connection, deadline: Instant) -> Result<()> {
pub(crate) async fn wait_connected(con: &mut Connection, deadline: Instant) -> Result<()> {
let end = pump(con, Some(deadline), |_, item| {
Ok(match item {
StreamItem::BookEvents(_) => Flow::Stop,