Methods
flush()
Parameters
Returns
IngestBatchResponse
identify()
null at sign-out starts a new anonymous session and
erases the old customer’s journeys. With Native Support, the conversation runtime sets the
identity; another identity kind replaces the one it checks, so sends fail.
Parameters
Type:
SessionIdentityjourney()
key, or starts one and reports started.
Calling it again while the instance is open returns the same instance, across reloads and
same-tab redirects. After succeed(), the next call starts a new instance.
Journeys need a signed-in subject: initialIdentity, or a bound conversation. Without one,
or with an invalid key or metadata, the handle is inert and instanceId is null.
Parameters
Returns
JourneyHandle
journeyRefs()
Returns
JourneyRef
onJourneyUpload()
listener each time an upload carrying the current subject’s journey steps reaches
Hinto, so a help offer read can follow at once. Returns a function that stops the calls. Optional: a capture client without
it still works, and runtime.offers then notices new steps within 2 seconds.
Parameters
Returns
() => void
shutdown()
await flush() first to send them.