Start merging current data with distant data

This commit is contained in:
Bruno SIMON
2016-06-10 19:23:11 +02:00
parent bd936322ef
commit 237ce7f4e1
8 changed files with 258 additions and 40 deletions
+3 -1
View File
@@ -37,6 +37,7 @@ class Project
{
console.log( 'socket projects'.green.bold + ' - ' + 'connect'.cyan + ' - ' + socket.id.cyan )
console.log(this.describe());
this.socket.emit( 'update_project', this.describe() )
} )
}
@@ -70,6 +71,7 @@ class Project
// Emit
this.socket.emit( 'update_file', file.describe() )
this.socket.emit( 'update_folders', this.describe_folders() )
return file
}
@@ -156,7 +158,7 @@ class Project
// Emit
this.socket.emit( 'delete_file', file_id )
this.socket.emit( 'update_folders', this.describe_folders )
this.socket.emit( 'update_folders', this.describe_folders() )
}
}
}