Skip to main content

Events

Subscribe with call.on(event, fn). It returns an unsubscribe function.

Types

End reasons

ended fires once per call.

Errors

start() and the other methods reject with TelzinoError, which has code, message, status? and recoverable. Errors during a call arrive on the error event. In React they land in error from useTelzino(). recoverable is the SDK’s hint that the same request may succeed if retried. It is true for rate_limited, livekit_unavailable, network and livekit. For network, retry once. If it keeps failing from a browser, the usual cause is an origin that is not on the key’s allowed list; fix that in the dashboard. The other codes (invalid_key, origin_not_allowed, embed_disabled, agent_not_found, invalid_request and permission_denied) are not recoverable and need a change on your side, such as an allowed origin, a different agent id, or microphone permission.
Import TelzinoError from @telzino/voice. The server codes map to the HTTP errors documented in Voice Sessions.