How to catch event on game over?

How can I catch a game over event in my Overwolf app?

basically, each supports different game events. So the names of the events can be different as well. You should read about your specific game and see which events it supports.

Anyway, let’s assume that matchEnd is an event, so you will get it from overwolf.games.events.onNewEvents (not onInfoUpdates).

on the onNewEvents handler you will get an events array, so you would need something like:

 data.events.forEach((event) => {
     if (event.name === "matchEnd") {
         // match has just ended
      }