From cc4e86623cd5a2a64e97103ff98af4d6e4a37658 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 26 Jul 2018 14:53:19 +0200 Subject: [PATCH] docs: add missing settings.read --- resources/docs/extras/custom-module.md | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/docs/extras/custom-module.md b/resources/docs/extras/custom-module.md index e4f128c8..a4058436 100644 --- a/resources/docs/extras/custom-module.md +++ b/resources/docs/extras/custom-module.md @@ -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)` +- `settings.read`: `function(name)`, see [settings.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/app/main/settings.js#L125-L162) for available options - `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)