Skip to content

Commit e0ba39a

Browse files
committed
feat: adds party mode
1 parent f308477 commit e0ba39a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/web/pages/lobbies.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ export default class LobbiesPage extends Vue {
7171
}
7272
7373
async fetchGames() {
74+
const partyRooms = await this.$colyseus.getAvailableRooms('party')
7475
const rooms = await this.$colyseus.getAvailableRooms('countries')
75-
for (const room of rooms) {
76+
for (const room of [...rooms, ...partyRooms]) {
7677
const previousGame = this.games.findIndex(
7778
(game) => game.roomId === room.roomId
7879
)

0 commit comments

Comments
 (0)