Reconnect the app's command channel after sleep; list clients from it

This commit is contained in:
Ian Gulliver
2026-10-18 09:16:31 -07:00
parent 931d1b9a96
commit 1363a3604d
11 changed files with 444 additions and 388 deletions
+5 -4
View File
@@ -1787,17 +1787,18 @@ components:
sse_clients: { type: integer }
clients:
type: array
description: Each distinct user, Mac and app build with an open event stream, oldest connection first.
description: Each running app that holds its /api/clients/connect WebSocket, oldest connection first.
items: { $ref: "#/components/schemas/ConnectedClient" }
ConnectedClient:
type: object
required: [login, host, commit, connected_at]
required: [id, login, host, commit, connected_at]
properties:
id: { type: string, description: The ID the app made up when it started, from its Byre-Client header. }
login: { type: string }
host: { type: string, description: The Mac's name from its Byre-Host header; empty when the client sent none. }
host: { type: string, description: The Mac's name from its Byre-Host header. }
commit: { type: string, description: The git commit the app was built from, from its Byre-Commit header; empty when the client sent none. }
connected_at: { type: string, format: date-time, description: When the client's oldest open stream connected. }
connected_at: { type: string, format: date-time, description: When the client's WebSocket connected. }
last_action_at: { type: string, format: date-time, description: When byre last received a request the human made from this client since byre started; absent when none. }
ClientRequest: