Commit 4cedb6e9 authored by Leo Iannacone's avatar Leo Iannacone

debugging output for socket data

parent d348e773
......@@ -434,14 +434,17 @@ function Page_Distrubion(socket)
this.start = function () {
socket.on(config.events.error, function(socket_error) {
debug(3, "socket > received event:",config.events.error, "data: ", socket_error)
error.set(socket_error)
})
socket.on(_e.distribution_packages.set, function (socket_data){
debug(3, "socket > received event:",_e.distribution_packages.set, "data: ", socket_data)
packages.set(socket_data)
})
socket.on(_e.distribution_packages.status, function (socket_data){
debug(3, "socket > received event:",_e.distribution_packages.set, "data: ", socket_data)
packages.set_status(socket_data)
sticky.set_status(socket_data)
})
......@@ -452,14 +455,17 @@ function Page_Distrubion(socket)
})
socket.on(_e.package_files_list.set, function (socket_data){
debug(3, "socket > received event:",_e.package_files_list.set, "data: ", socket_data)
files.set(socket_data)
})
socket.on(_e.file.set, function (socket_data) {
debug(3, "socket > received event:",_e.file.set, "data: ", socket_data)
file.set(socket_data)
})
socket.on(_e.file_newcontent, function (socket_data) {
debug(3, "socket > received event:",_e.file_newcontent, "data: ", socket_data)
new_lines.push(socket_data.file.new_content)
})
......
......@@ -95,14 +95,17 @@ function Page_Generic()
// update distributions
socket.on(_e.broadcast.distributions, function(socket_distributions) {
debug(3, "socket > received event:",_e.broadcast.distributions, "data: ", socket_distributions)
distributions.set(socket_distributions)
});
socket.on(_e.client.status, function(packages_status) {
debug(3, "socket > received event:",_e.client.status, "data: ", packages_status)
status.set(packages_status)
})
socket.on(_e.broadcast.status_update, function(package_status) {
debug(3, "socket > received event:",_e.broadcast.status_update, "data: ", packages_status)
status.update(package_status)
})
......
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