Add method for requesting the player list.
This commit is contained in:
parent
82140af56d
commit
24c5220843
1 changed files with 7 additions and 1 deletions
|
|
@ -21,7 +21,13 @@ export default {
|
||||||
data() {return {
|
data() {return {
|
||||||
players: []
|
players: []
|
||||||
}},
|
}},
|
||||||
methods: {},
|
methods: {
|
||||||
|
getPlayerList() {
|
||||||
|
this.$socket.emit(`GetPlayerList`, {
|
||||||
|
game_code: this.game_code,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
sockets: {
|
sockets: {
|
||||||
PlayerJoin() {},
|
PlayerJoin() {},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue