annotate node_modules/node-osc/examples/client.js @ 99:9641c2572988

osc modifications for operation integratus performance
author Rob Canning <rob@foo.net>
date Mon, 08 Dec 2014 21:30:23 +0000
parents cd921abc8887
children
rev   line source
rob@77 1 var osc = require('../lib/osc.js');
rob@77 2
rob@77 3 var client = new osc.Client('127.0.0.1', 3333);
rob@77 4 client.send('/oscAddress', 1, 1, 2, 3, 5, 8);
rob@77 5
rob@77 6 // or
rob@77 7 // var msg = new osc.Message('/address')
rob@77 8 // msg.append("testing");
rob@77 9 // msg.append("testing");
rob@77 10 // msg.append(123);
rob@77 11 // client.send(msg)
rob@77 12
rob@77 13 // or
rob@77 14 // var msg = new osc.Message('/address', 1, 2, 3);
rob@77 15 // client.send(msg);