26 lines
824 B
Markdown
26 lines
824 B
Markdown
# HubConnection Scene
|
|
|
|
## UI
|
|
- Connection status indicator (connecting/retrying/failed)
|
|
- Retry button + diagnostics link (optional)
|
|
|
|
## Client
|
|
- Open relay/hub socket.
|
|
- Send initial hello with client build + platform metadata.
|
|
- Wait for connection acceptance and service availability.
|
|
|
|
## Server
|
|
- Validate protocol version compatibility.
|
|
- Return environment capabilities and endpoint map.
|
|
- Return maintenance/degraded status if active.
|
|
|
|
## Data Exchange
|
|
### Client -> Server (`HubHello`)
|
|
- `requestId`, `clientVersion`, `contentVersion`, `platform`, `locale`, `deviceId`, `sessionId`
|
|
|
|
### Server -> Client (`HubWelcome`)
|
|
- `requestId`, `connectionId`
|
|
- `minSupportedClientVersion`, `latestClientVersion`, `latestContentVersion`
|
|
- `serviceStatus`, `apiBaseUrl`, `cdnBaseUrl`
|
|
- `authProvidersEnabled`, `motd` (optional)
|