Merge branch 'main' into web-run-live
# Conflicts: # web/src/app.js # web/src/protocol.js # web/src/repository.js # web/test/ui-smoke.mjs
This commit is contained in:
@@ -117,14 +117,14 @@ export class PipelinesRepository {
|
||||
|
||||
/**
|
||||
* Asks the server to push this connection the live run state it displays
|
||||
* (R10). Send-only, mirroring `PipelinesRepository.subscribeRuns`: it returns
|
||||
* the generated frame id and never waits for a reply, because the server may
|
||||
* not acknowledge a `subscribe`. The body is exactly `{type:'subscribe',
|
||||
* workspace}`; `run_ids` rides only when ids are given, so a blank workspace
|
||||
* with no ids asks for the server-wide "any workspace" scope — the same
|
||||
* `runIds.ifEmpty { null }` shape the Android client sends. The pushed state
|
||||
* arrives as unsolicited `run_event` frames (client.js surfaces them as
|
||||
* `frame` events).
|
||||
* (R10, also the source of L5's notifications). Send-only, mirroring
|
||||
* `PipelinesRepository.subscribeRuns`: it returns the generated frame id and
|
||||
* never waits for a reply, because the server may not acknowledge a
|
||||
* `subscribe`. The body is exactly `{type:'subscribe', workspace}`; `run_ids`
|
||||
* rides only when ids are given, so a blank workspace with no ids asks for the
|
||||
* server-wide "any workspace" scope — the same `runIds.ifEmpty { null }` shape
|
||||
* the Android client sends. The pushed state arrives as unsolicited
|
||||
* `run_event` frames (client.js surfaces them as `frame` events).
|
||||
*/
|
||||
subscribeRuns(workspace = "", runIds = []) {
|
||||
const request = { type: Protocol.SUBSCRIBE, workspace: String(workspace ?? "") };
|
||||
|
||||
Reference in New Issue
Block a user