/* Two subscriptions in one round, for the same reason as everywhere else this round: `listen` is an invoke, so one behind the other is two bridge round trips at launch. Both are in flight from here; they are awaited together at the end, so neither can reject with nobody listening. */ const streamSub = listen("soulseek:stream", (ev) => { const p = ev.payload || {}; if (!current()?.t?.stream) return; player.stream = { received: p.received || 0, total: p.total || 0, done: !!p.done, failed: p.failed || null }; if (p.failed) setErr("The stream from " + current().t.stream.username + " failed: " + p.failed); });