From 24c5220843a23c79ac9aa86ffaa528be109e2207 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 28 Sep 2020 22:32:26 -0600 Subject: [PATCH] Add method for requesting the player list. --- src/views/Lobby.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/Lobby.vue b/src/views/Lobby.vue index a9c9fed..2181dba 100644 --- a/src/views/Lobby.vue +++ b/src/views/Lobby.vue @@ -21,7 +21,13 @@ export default { data() {return { players: [] }}, - methods: {}, + methods: { + getPlayerList() { + this.$socket.emit(`GetPlayerList`, { + game_code: this.game_code, + }); + }, + }, sockets: { PlayerJoin() {}, },