Skip to main content
Removes a subscription to an event type. The specified handler will no longer be called when the event occurs.

Syntax

Parameters

eventName
required
The name of the event to unsubscribe from.
handler
function
required
The specific callback function to remove. Must be the same function reference that was used with on() or once().

Returns

void
Returns a void operator.

Examples

The following examples show different ways to unsubscribe from events:

Do you need practical examples?

Learn how to apply the features available for embedded chat into your implementation with guidance and examples.