Commit 40b6093b authored by Leo Iannacone's avatar Leo Iannacone

imported unsed function in caller

parent 51ef0a6d
......@@ -71,19 +71,13 @@ function __send_file (event_name, socket, data) {
});
}
function __handler_get_file (socket, data) {
file_path = utils.get_file_path(data)
utils.watch_path_onsocket('file_newcontent', socket, data, file_path, __handler_file_newcontent)
__send_file('file', socket, data)
}
function __handler_file_newcontent(event_name, socket, data) {
if(! utils.check_data_file(data))
return
utils.watch_path_onsocket('file_newcontent', socket, data, file_path, function(event_name, socket, data) {
data.file.content = null
socket.emit(event_name, data)
})
__send_file('file', socket, data)
}
Client = function (socket) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment