Replace osc with node-osc, like orca

This commit is contained in:
Michael Sarchet
2019-07-22 20:27:25 -07:00
parent b694d6c8db
commit 5ee3bf54c0
3 changed files with 10 additions and 13 deletions

View File

@@ -1,18 +1,18 @@
'use strict'
function Osc (ronin) {
const osc = require('osc')
const osc = require('node-osc')
this.msg = {}
this.start = function () {
const udpPort = new osc.UDPPort({
localAddress: '0.0.0.0',
localPort: 49162,
metadata: true
})
const udpPort = new osc.Server(
49162,
'0.0.0.0'
)
udpPort.on('message', this.onMsg)
udpPort.open()
ronin.log('OSC', 'Started.')
}