Fixes activequizzes push

parent 3fba04ec
......@@ -75,7 +75,7 @@ export class WebSocketRouter {
WebSocketRouter._wss.on('connection', (ws: WebSocket) => {
const quizStatusUpdateHandler = () => {
WebSocketRouter.sendQuizStatusUpdate(ws, MessageProtocol.Connected, QuizDAO.getJoinableQuizzes().map(val => val.name));
WebSocketRouter.sendQuizStatusUpdate(ws, MessageProtocol.Connected, { activeQuizzes: QuizDAO.getJoinableQuizzes().map(val => val.name) });
};
const quizSessionUpdateHandler = () => {
WebSocketRouter.sendQuizStatusUpdate(ws, MessageProtocol.UpdatedSettings,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment