custom module: add receiveOsc()

This commit is contained in:
jean-emmanuel 2016-11-01 19:37:09 +01:00
parent c7820d1b7f
commit dd07aabbd6

View file

@ -21,8 +21,9 @@ var customModule = (function(){
var file = (function(){try {return fs.readFileSync(settings.read('customModule'),'utf8')} catch(err) {console.log('CustomModule Error: File not found: ' + settings.read('customModule'));return false}})(),
mod,
context = {
console:console,
sendOsc:sendOsc
console: console,
sendOsc: sendOsc,
receiveOsc: receiveOsc
}
try {
mod = vm.runInContext(file, vm.createContext(context))