custom module: add init script support

This commit is contained in:
jean-emmanuel 2017-02-03 22:33:19 +01:00
parent fa46d1c31e
commit 4280d195f5

View file

@ -92,7 +92,8 @@ var customModule = (function(){
context = {
console: console,
sendOsc: sendOsc,
receiveOsc: receiveOsc
receiveOsc: receiveOsc,
setTimeout: setTimeout
}
try {
@ -144,6 +145,10 @@ oscServer.on('error', function (error) {
oscServer.open()
if (customModule.init) {
customModule.init()
}
module.exports = {