Skip to main content
Listen with DeskHoot.on(). It returns a function that stops listening.

Listening

string
required
one of 8 names
The event to listen for. Any other name is ignored.
function
required
Called with the event’s details each time it happens.
DeskHoot.off(event, handler) removes a handler you added with the same function.

Events

The chat loads the first time it opens, or straight away for a visitor who has chatted before. To get events earlier, call DeskHoot.ready().
{}
fires once
The chat has loaded and is ready for your calls.
{}
The chat opened, from the chat button or from DeskHoot.open().
{}
The chat closed.
{ count: number }
The number of unread messages changed.
{ identified: boolean }
A customer was signed in or out.
{}
The chat can take a signed customer now, for example after the customer continued in a separate chat window. If your page has one, call DeskHoot.setUser().
{ code: string }
A signed customer was refused.
{ code: string }
Something went wrong in the chat.

Open and close

Control the chat from your own code.

Verify users

Show signed-in customers to your team.

Light or dark

Match your website’s theme.

Methods

What DeskHoot can do.