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
| Parameter | Type |
|---|---|
event | SessionLifecycleEvent |
Returns
Promise<void>