Skip to main content
Reference for @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 fresh start() is allowed again once state reaches ended. Each call gets its own freshly-minted session.

Events

Subscribe with call.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 use getSession 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.

Next steps

Take calls in the browser