chaosc-fetcher/oscreceiver.js

8 lines
235 B
JavaScript
Raw Normal View History

2012-12-17 13:58:03 +00:00
var osc = require('node-osc');
var port = process.argv.length > 2 ? process.argv[2] : '5001';
var oscServer = new osc.Server(port, '0.0.0.0');
oscServer.on("message", function (msg, rinfo) {
console.log("message: " + msg);
});