Documentation

API Reference

Events, methods, and programmatic control for the hooman.live widget.

Widget States

The hooman.live widget transitions through several states during its lifecycle.

StateDescription
COLLAPSEDSmall floating button - the default idle state
EXPANDEDPanel with action buttons visible
WAITINGConnecting to a rep with countdown timer
INCOMING_PINGRep is reaching out - shows Accept/Decline popup
IN_CALLActive video call with controls
POPPED_OUTCall has been moved to a separate browser window

WebSocket Events

The widget uses WebSocket for real-time communication with the server.

EventDirectionDescription
presenceServer → ClientNotifies about rep availability status
call_startingServer → ClientA call is being initiated with connection details
pingServer → ClientA rep is reaching out to the visitor
call_endedServer → ClientThe call has been terminated

JavaScript API

🚧

Coming Soon

Programmatic JavaScript API for controlling the widget, listening to events, and customizing behavior is coming soon.

REST API

🚧

Coming Soon

REST API documentation for server-side integration is coming soon.