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

6 lines
187 B
JavaScript

var artnetclient = require('../lib/artnet_client');
var data = [255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
var client = artnetclient.createClient('127.0.0.1', 6454);
client.send(data);