Repository navigation
Added
StatsClient.wait_for(event_name, timeout=None)- await the next occurrence of an eventPlayerSnapshotdataclass with per-player stats (name, team, score, goals, assists, saves, shots, boost, speed, is_demolished)MatchStateSnapshot.players- list of all players from the latestUpdateStateMatchStateSnapshot.target_player- the local/spectated player, resolved byGame.Target.ShortcutClientMetrics.reset()- reset all counters and refreshstarted_atClientMetrics.started_at- datetime the client (or last reset) was initializedConnectionStateenum withDISCONNECTED,CONNECTING,CONNECTED,FAILEDStatsClient.connection_stateproperty exposing granular connection lifecycle stateStatsClient(handler_timeout=...)- cancels slow async handlers after N secondsdisconnect(timeout=5.0)- graceful shutdown with configurable wait timeoutConnectionStateandPlayerSnapshotexported from the top-levelrlstatsapipackage
Changed
on_handler_errorcallback signature changed from(event_name: str, exc)to(msg: EventMessage, exc, handler)for full context
Improved
- Docs:
examples.mdupdated to list all 9 example scripts - Docs:
configuration.mdnow showsdisableandstatusCLI commands - Docs:
recipes.mdremoved reference to non-existenttest.py
Full Changelog: v0.1.5...v0.1.6