The JavaScript and ESP32 SDKs side by side. Each SDK's support is stated on its own: one never implies the other. The server decides every operation, so a capability in a client is not a permission.
Support matrix
| Capability | JavaScript | ESP32 |
|---|---|---|
| Task voice (WSS, ACK, replay, resume) | Supported (browser, Node) | Supported |
| RTC audio | Publish, subscribe, mute, playback (browser) | RTC audio owner |
| Packets | Send and receive | Send only |
| Streams | Send and receive | Receive only |
| RPC | Call and handle | Callee only (answers 1–4 app.* methods, replies to the original caller only); no caller |
| DataTrack | Supported (livekit-client 2.22.3) | Not supported on ESP32 yet |
| Agents | Explicit Agent executions and read-only Agent state | Human-started only: create, get and stop run under a Human's AppSession; a Device cannot start an Agent, and it is not yet verified on a device. A Device as the Agent's microphone and speaker (the agent_call example) is not yet verified end to end |
| State, device, error, release | Session state, quality, microphone selection, OneSay errors, close | Binding and media status, OneSay error codes, close |
| Selected-mode media encryption | Conditional: where the browser can run the packaged worker | Unsupported: any selected value is refused before any request |
Support: supported; partial means one direction or one role only; conditional depends on the client environment; unsupported is refused with an explicit error and never replaced by another transport. Details per SDK: JavaScript SDK, ESP32 SDK.
Unsupported and not exposed
- JavaScript, not fully supported: Selected-mode media encryption (conditional).
- JavaScript, not exposed: native room, track and participant objects; native token or connection material; native SDK types; an escape hatch to the native SDK.
- ESP32, not fully supported: Packets (partial); Streams (partial); RPC (partial); DataTrack (unsupported); Agents (partial); Selected-mode media encryption (unsupported).
- ESP32, not exposed: native room or track handles; native token or connection material; the upstream ESP32 runtime API.
RTC lifecycle
- Connection details come from the Control API. They are valid for at most 60 s for a user's app and at most 21600 s for a Device, and never past the connection's own expiry. The SDK never stores them and gives you a OneSay session, never the underlying room or token.
- A revocation is requested as
revokingand becomesrevokedonly when it is effective. A closed connection never reopens. - JavaScript session states:
connected,reconnecting,closed. Reconnecting clears the receive handlers; the SDK restores a subscription only with its original version and key. - Media encryption modes:
none,e2ee(defaultnone). A client that cannot use the selected mode is refused with an explicit error, never downgraded.
Task recovery
- JavaScript: at most 5 reconnect attempts with bounded exponential backoff and jitter; no retry after an authentication or permission failure; a rejected resume ends as
fail. - ESP32: at most 5 attempts with jitter and a single-use ticket per attempt; no retry after an authentication failure, a revoked credential or a rejected resume.
- Both: a contiguous ACK releases audio, only unacknowledged audio is replayed, and an overflow is an explicit
client_buffer_overflow, never a silent drop.
Limits and privacy
- Audio: 16000 Hz mono
pcm_s16le. A JavaScript message carries at most 4096 samples; the ESP32 replays at most 3000 ms (96000 bytes) by default. - For Task voice your application supplies the audio; neither SDK opens a microphone for it.
- ESP32 diagnostics never carry
wifi_ssid,raw_mac_address,raw_ip,raw_audio,transcript,credential,realtime_ticket. - RTC connection details are sensitive and served with
no-store; the SDK never stores them.