Skip to main content
Version: SDK 5.0.x

Function publishEvent

publishEvent(event: string | AppEvent): Promise<void>

Publish a new event to track a user action.

Parameters

NameTypeDescription
eventstring | AppEventThe event that needs to be published. Should be an AppEvent or a string denoting the name of the event to publish.

Returns

 Promise<void>