Skip to content

CircuitLab/osc-receiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osc-receiver

Build Status

A tiny OSC message receiver.

Installation

npm:

$ npm install osc-receiver

Usage

Example:

var OscReceiver = require('osc-receiver')
  , receiver = new OscReceiver();

receiver.bind(9337);

receiver.on('/foo', function(a, b, c) {
  // do something.
});

receiver.on('/bar', function(x, y) {
  // do something.
});

receiver.on('message', function() {
  // handle all messages
  var address = arguments[0];
  var args = Array.prototype.slice.call(arguments, 1);
});

License

The MIT License

Copyright (c) 2013 Circuit Lab. <info@uniba.jp>