8 lines
235 B
JavaScript
8 lines
235 B
JavaScript
|
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);
|
||
|
});
|