handleSessionEvent method
Handles session lifecycle events
Implementation
Future<void> handleSessionEvent(
String userId,
String action, // started | extended | expired
) async {
await emitEvent('session_event', {
'user_id': userId,
'action': action,
});
}