controllers/room.js
Function onSendMessage
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onSendMessage: function(socket, event) {
return function(jsonMessage) {
var author = socket.handshake.user.id;
report.debug('user ' + author + ' sends message ' + JSON.stringify(jsonMessage));