From d0e9e518b628b07457cb103b1e4711385990e58e Mon Sep 17 00:00:00 2001 From: raphael Date: Fri, 11 Jan 2019 10:55:37 +0100 Subject: [PATCH] add comments --- server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index dff09d1..24291be 100644 --- a/server.js +++ b/server.js @@ -77,17 +77,17 @@ function progressUploadFormData(formData) { io.on('connection', function(socket){ socket.on('disconnect', function () { - socket.broadcast.emit('refreshUserBadges', null); + socket.broadcast.emit('refreshUserBadges', null); //Removes old user Badges }); socket.on('drawToWhiteboard', function(content) { content = escapeAllContentStrings(content); - socket.broadcast.to(content["wid"]).emit('drawToWhiteboard', content); + socket.broadcast.to(content["wid"]).emit('drawToWhiteboard', content); //Send to all users in the room (not own socket) s_whiteboard.handleEventsAndData(content); //save whiteboardchanges on the server }); socket.on('joinWhiteboard', function(wid) { - socket.join(wid); + socket.join(wid); //Joins room name=wid }); });