0
0
Fork 0

Add an event listener for GameRejoined.

This commit is contained in:
Oliver-Akins 2021-01-03 00:06:45 -07:00
parent 3abec8ccda
commit 01ea91e856

View file

@ -96,6 +96,13 @@ export default {
});
this.$store.commit(`view`, `lobby`);
},
GameRejoined(data) {
if (!(200 <= data.status && data.status < 300)) {
this.$emit(`error`, data);
return;
};
// TODO -> Update all data that is received from the server
},
},
mounted() {},
}