Essentials
Game Events
A guide to subscribing to game events.
In order to subscribe to events for a given game, you’ll need to use the game’s respective module. This helps with bundle sizes so you only load the event code that you need, and helps organize our architecture.
View our supported games and their events here.
Example
Listening to any event
Typed and Validated
All events are validated with Arktype and fully typed. This means you can be confident in the data you receive, and will never run into an event with a missing property or incorrect type.
We expose all of the types for each event on the module, for example:
Constants
We also expose helpful constants and other game data on the module, for example: