Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:23blocks OS Ai maestro Browser WebSocket API

From Leeroopedia
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.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment