web: live run updates over a single app-wide watch (R10)
This commit is contained in:
@@ -27,6 +27,17 @@ export const Protocol = Object.freeze({
|
||||
GET_RUN: "get_run",
|
||||
RUN: "run",
|
||||
|
||||
// Live run state (internal/protocol/runevents.go, Message.kt; R10). `subscribe`
|
||||
// scopes the watch to a workspace (the blank string means "any") and may carry
|
||||
// explicit `run_ids`; `unsubscribe` drops the connection's watch; `run_event` is
|
||||
// the server-pushed compact delta, which arrives without a matching request id
|
||||
// and is therefore surfaced by client.js as a `frame` event. Both commands are
|
||||
// send-only: the server may not ack `subscribe` and the Android client never
|
||||
// awaits a reply.
|
||||
SUBSCRIBE: "subscribe",
|
||||
UNSUBSCRIBE: "unsubscribe",
|
||||
RUN_EVENT: "run_event",
|
||||
|
||||
// Omni-search (internal/protocol/search.go): the command and its reply type.
|
||||
// The per-kind payloads and the kind/limit vocabulary live in src/search.js.
|
||||
SEARCH: "search",
|
||||
|
||||
Reference in New Issue
Block a user