From 1bd4f55335904f9c3cd5b57679a3531069834a69 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 28 Sep 2020 22:33:14 -0600 Subject: [PATCH] Listen for the response from the server for the player list --- src/views/Lobby.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/Lobby.vue b/src/views/Lobby.vue index fa7ef61..23e92ed 100644 --- a/src/views/Lobby.vue +++ b/src/views/Lobby.vue @@ -38,6 +38,11 @@ export default { }, }, sockets: { + PlayerListResponse(data) { + if (data.success) {} else { + this.$emit(`alert`) + } + }, PlayerJoin() {}, }, }