added some logging
This commit is contained in:
parent
87d0b4d1aa
commit
dbddf9af95
|
@ -20,6 +20,9 @@ app.get('/', function (req, res) {
|
||||||
io.sockets.on('connection', function (socket) {
|
io.sockets.on('connection', function (socket) {
|
||||||
//socket.emit('news', { hello: 'world' });
|
//socket.emit('news', { hello: 'world' });
|
||||||
|
|
||||||
|
var address = socket.handshake.address;
|
||||||
|
console.log("New connection from " + address.address + ":" + address.port);
|
||||||
|
|
||||||
socket.on('oscmessage', function (data) {
|
socket.on('oscmessage', function (data) {
|
||||||
|
|
||||||
var chan = data.chan;
|
var chan = data.chan;
|
||||||
|
@ -41,7 +44,7 @@ io.sockets.on('connection', function (socket) {
|
||||||
// hier noch nicht einkommentieren, das sendet das sofort ins hackcenter
|
// hier noch nicht einkommentieren, das sendet das sofort ins hackcenter
|
||||||
//oscSender.send(chan, value);
|
//oscSender.send(chan, value);
|
||||||
|
|
||||||
console.log(chan, value);
|
console.log(address, chan, value);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue