custom module: expose app, an event listener for monitoring events (see callbacks.js) (#341)
This commit is contained in:
parent
556892f941
commit
23551c53ee
3 changed files with 11 additions and 2 deletions
|
|
@ -54,6 +54,7 @@ The module is executed in a restricted context, only a few globals are available
|
|||
- `clearTimeout`: `function(timeout)`
|
||||
- `setInterval`: `function(function, delay)`
|
||||
- `clearInterval`: `function(interval)`
|
||||
- `app`: an [event emitter](https://nodejs.org/api/events.html#events_class_eventemitter) for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/app/main/callbacks.js), callbacks are called with 2 arguments: `data` (object) and `clientId` (string)
|
||||
|
||||
|
||||
`sendOsc` and `receiveOsc` expect arguments formatted as follow:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue