Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ARSnova
arsnova-click-v2-backend
Commits
21f16efb
Commit
21f16efb
authored
Apr 24, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes activequizzes push
parent
3fba04ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/routers/websocket/WebSocketRouter.ts
src/routers/websocket/WebSocketRouter.ts
+1
-1
No files found.
src/routers/websocket/WebSocketRouter.ts
View file @
21f16efb
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment