@lokua/osc-server
v0.1.0
Published
## Install
Downloads
1
Readme
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