Skip to main content

SessionLifecycleAdapter

Interface for session lifecycle adapters

Adapters are registered with the worker and called when events are processed. Each adapter handles specific side effects (notifications, payments, etc.)

Properties

name

name: string;

Unique name for this adapter

Methods

onEvent()

onEvent(event): Promise<void>;

Handle a lifecycle event

Parameters

ParameterType
eventSessionLifecycleEvent

Returns

Promise<void>