add comments

This commit is contained in:
raphael 2019-01-11 10:55:37 +01:00
parent 9e97a13425
commit d0e9e518b6
1 changed files with 3 additions and 3 deletions

View File

@ -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
});
});