mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-14 04:25:35 +01:00
Update Manager
This commit is contained in:
@@ -60,7 +60,7 @@ const Manager = {
|
||||
|
||||
showLoaderboard: (game, io, socket) => {
|
||||
if (!game.questions[game.currentQuestion + 1]) {
|
||||
io.to(game.room).emit("game:status", {
|
||||
io.to(socket).emit("game:status", {
|
||||
name: "FINISH",
|
||||
data: {
|
||||
winners: game.players.slice(0, 3).sort((a, b) => b.points - a.points),
|
||||
@@ -71,7 +71,7 @@ const Manager = {
|
||||
return
|
||||
}
|
||||
|
||||
io.to(game.room).emit("game:status", {
|
||||
io.to(socket.id).emit("game:status", {
|
||||
name: "SHOW_LEADERBOARD",
|
||||
data: {
|
||||
leaderboard: game.players
|
||||
|
||||
Reference in New Issue
Block a user