add user and whiteboard by get parameters and fix bugs

This commit is contained in:
rofl256
2018-02-08 23:38:41 +01:00
parent d227db5264
commit 577e2969be
3 changed files with 30 additions and 6 deletions

View File

@@ -71,6 +71,10 @@ function progressUploadFormData(formData) {
}
io.on('connection', function(socket){
socket.on('disconnect', function () {
socket.broadcast.emit('refreshUserBadges', null);
});
socket.on('drawToWhiteboard', function(content) {
socket.broadcast.emit('drawToWhiteboard', content);
s_whiteboard.handleEventsAndData(content); //save whiteboardchanges on the server