From 5262cbbd00a95a12b85dd43117c4fd9f34e16075 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 2 Oct 2020 10:18:02 -0600 Subject: [PATCH] Listen for new players while in the lobby --- src/views/Lobby.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/Lobby.vue b/src/views/Lobby.vue index e84373d..9968071 100644 --- a/src/views/Lobby.vue +++ b/src/views/Lobby.vue @@ -44,7 +44,9 @@ export default { }); }; }, - PlayerJoin() {}, + NewPlayer(data) { + this.players.push(data.player); + }, }, }