# Events

## Events

Register with `client.set_event_callback(name, fn)`.

#### match_start

No fields.

#### match_end

Key | Description
--- | -----------
**known** | Whether the outcome is known.
**won** | Whether you won.
**quit** | Whether the match was quit.
**coins** | Coin delta.

#### turn_start

Key | Description
--- | -----------
**ours** | Whether it is our turn.

#### shot_fired

Fired when a shot is taken.

#### puck_pocketed

Key | Description
--- | -----------
**ours** | Whether it was our puck.
**number** | Puck number.
**pocket** | Pocket index.

#### queue_phase

Key | Description
--- | -----------
**phase** | The queue phase as an integer.