📣 Session Event Bus
The SessionEventBus
emits session related events. It's stored by a ScheduleManager
, and you can get it via
SessionManager#getEventBus()
.
tip
You can check more information about buses on the 📣 Event Buses documentation.
👂 Events
Currently, the events that it emits are:
SessionStart
- Emitted when aSession
starts. Passes the startedSession
, itsSessionStartInteraction
andSessionExecutionMeta
.SessionUpdate
- Emitted when aSession
is updated. Passes the updatedSession
, itsSessionUpdateInteraction
andSessionExecutionMeta
.SessionEnd
- Emitted when aSession
ends. Passes the endedSession
, itsSessionEndData
andSessionExecutionMeta
.SessionExpire
- Emitted when aSession
expires. Passes the expiredSession
andSessionEndData
.
You can get these events from the SessionEventEnum
enum on @core
.