Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including epictuio with all npm packages installed. Try it out:

var epictuio = require("epictuio")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

epictuio v0.0.1

a simple UDP OSC parser that returns an event emitter of TUIO data

epic-tuio

a simple udp osc parser that returns an event emitter

usage

var tuio = require('epictuio');

// creates an instance, returns an event emitter
var _tuio = new tuio({
    oscPort: 3333,          // default TUIO port
    oscHost: "127.0.0.1",       // your machine
    raw: false              // not required
});

// example of a 2D cursor being sent via TUIO to this server
_tuio.on('2Dcur', function(msg){
    console.log(msg);
})

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free