server.js
// Send current project to new client
Send current project to new client
Send current project to new client
function loadFromMemory(room, socket) {
  var project = projects.projects[room].external_paths;
  if (!project) { 
    db.load(room, socket);
    return;
  }else{
    socket.emit('loading:start');
    console.log("Loading from memory")
    socket.emit('project:load', {project: project});
    socket.emit('loading:end');
  }
}
function loadFromMemory ( room , socket ) { var project = projects . projects [ room ] . external_paths ; if ( ! project ) { db . load ( room , socket ) ; return ; } else { socket . emit ( 'loading:start' ) ; console . log ( "Loading from memory" ) socket . emit ( 'project:load' , { project : project } ) ; socket . emit ( 'loading:end' ) ; } }
Send current project to new client
Send current project to new client
// Additional backup check, just in case