Frontend API
Control Bit from your frontend.
This reference lists the core Bit API exposed by createBit.
For JavaScript examples, see Frontend API (JavaScript).
Methods
open()
Opens the Bit widget.
close()
Closes the Bit widget.
toggle()
Toggles the widget open/closed.
setNavigationHandler(handler)
Called when the widget requests navigation.
identify({ token })
Associates a JWT with the current session.
onRequestToken(handler)
Registers a callback for Bit to request a fresh JWT.
getBit(agentId)
Returns a previously initialized widget instance.