Environment:23blocks OS Ai maestro Browser WebSocket API
| Knowledge Sources | |
|---|---|
| Domains | Client, Network |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
The browser WebSocket API: the standard `WebSocket` interface used for AI Maestro's live terminal, status, and companion voice channels.
Description
AI Maestro's `server.mjs` serves WebSocket channels for terminal streaming, status updates, and companion voice on the same port as HTTP (23000). Client hooks (`useWebSocket`, `useCompanionWebSocket`) open `WebSocket` connections to these channels with exponential-backoff reconnect and heartbeat liveness checks. The terminal hook pipes WS bytes into xterm.js; the status hook feeds the single browser store (`useSessionActivity`); the companion hook carries voice audio.
Usage
Use this environment for any client-side implementation that maintains a live WebSocket connection to the AI Maestro server.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| Browser | Any modern browser | WebSocket is universal |
Dependencies
No external dependencies; `WebSocket` is a browser built-in.