hackcentercontrol/nodeartnet/node_modules/artnet/test/test-server.js

12 lines
382 B
JavaScript
Raw Normal View History

2012-12-28 22:17:47 +00:00
var artnetsrv = require('../lib/artnet_server');
var srv = artnetsrv.listen(6454, function(msg, peer) {
console.log("-----------------");
console.log("Sequence: " + msg.sequence);
console.log("Physical: " + msg.physical);
console.log("Universe: " + msg.universe);
console.log("Length: " + msg.length);
console.log("Data: " + msg.data);
console.log("-----------------");
});