@bolna/web-call. For setup and a quickstart, see Web Call SDK.
Constructor
new BolnaWebCall(options): Provide exactly one session source. The constructor throws if you pass zero or more than one.
Optional, on top of one of the three above:
Methods
Call state
A freshstart() is allowed again once state reaches ended. Each call gets its own freshly-minted session.
Events
Subscribe withcall.on(event, handler), and remove a handler with off or once for a one-time listener.
A handler that throws is caught internally and logged. It can’t take down call handling or other listeners.
cause holds the underlying error when one exists, for example a DOMException from a denied getUserMedia() call, or the raw error from a failed fetch(). It’s for logging and debugging: untyped (unknown), and not guaranteed to be present.Error codes
Session shape
If you usegetSession instead of sessionUrl, resolve to this shape. It’s exactly what Bolna’s mint endpoint returns, so most integrations never construct it by hand: your backend proxies the mint response as-is.

