mirror of
https://github.com/jwetzell/osc-js.git
synced 2026-08-20 22:39:00 +00:00
add decode to example
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
const osc = require('../dist/index.js')
|
const osc = require('../dist/index.js')
|
||||||
|
|
||||||
const buffer = osc.messageToBuffer({address:'/hello',args:[{type: 's', value: 'arg1'}]})
|
const buffer = osc.messageToBuffer({address:'/hello1',args:[{type: 's', value: 'arg1'}]})
|
||||||
|
|
||||||
console.log(buffer)
|
console.log(buffer)
|
||||||
|
const message = osc.messageFromBuffer(buffer)
|
||||||
|
|
||||||
|
console.log(message)
|
||||||
Reference in New Issue
Block a user