@lokua/osc-server

0.1.0 • Public • Published

osc-server

Install

npm i @lokua/osc-server --save

Usage

const createServer = require(`@lokua/osc-server`)

const { onMessage, send/*, server, config */ } = createServer({
  // below is the default config:
  // ----------------------------
  inputPort: 9002,
  inputHost: `0.0.0.0`,
  outputPort: 9001,
  outputHost: `0.0.0.0`,
  exitOnError: false,
  formatAddress: x => x,
  debug: true
})

onMessage((address, value) => {/* do something */})
send(`someAddress`, 98)

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @lokua/osc-server

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • lokua