flushSessionEvents method
Force an immediate POST of buffered session events, bypassing the dispatcher's own tick. Returns the number actually sent. Buffered events already survive a process kill, so this is for callers that want the flush to happen now rather than on the next automatic tick.
Implementation
Future<int> flushSessionEvents() => _platform.flushSessionEvents();