Testing small things

This commit is contained in:
Kasper Rynning-Tønnesen
2018-06-04 22:45:28 +02:00
parent ed55f0768a
commit 2ebb35f377

View File

@@ -80,6 +80,8 @@ module.exports = function() {
socket.on('chromecast', function(msg) { socket.on('chromecast', function(msg) {
console.log("chromecast event", msg); console.log("chromecast event", msg);
console.log(Functions.getSession(socket));
console.log("cookie_id", socket.cookie_id);
try { try {
if(typeof(msg) == "object" && msg.hasOwnProperty("guid") && if(typeof(msg) == "object" && msg.hasOwnProperty("guid") &&
msg.hasOwnProperty("socket_id") && msg.hasOwnProperty("channel") && typeof(msg.guid) == "string" && msg.hasOwnProperty("socket_id") && msg.hasOwnProperty("channel") && typeof(msg.guid) == "string" &&
@@ -107,6 +109,7 @@ module.exports = function() {
}); });
} }
} catch(e) { } catch(e) {
console.log(e);
return; return;
} }
}); });