added some logging

This commit is contained in:
Lucas Pleß 2012-12-29 00:10:43 +01:00
parent 87d0b4d1aa
commit dbddf9af95
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,9 @@ app.get('/', function (req, res) {
io.sockets.on('connection', function (socket) {
//socket.emit('news', { hello: 'world' });
var address = socket.handshake.address;
console.log("New connection from " + address.address + ":" + address.port);
socket.on('oscmessage', function (data) {
var chan = data.chan;
@ -41,7 +44,7 @@ io.sockets.on('connection', function (socket) {
// hier noch nicht einkommentieren, das sendet das sofort ins hackcenter
//oscSender.send(chan, value);
console.log(chan, value);
console.log(address, chan, value);
});
});