diff --git a/cli/examples/closed-captions-settings-reset.json b/cli/examples/closed-captions-settings-reset.json deleted file mode 100644 index 5dc6fdb0..00000000 --- a/cli/examples/closed-captions-settings-reset.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "scratch": { - "closedCaptionsSettings": { - "enabled": true, - "styles": { - "fontFamily": "Monospace sans-serif", - "fontSize": 1, - "fontColor": "#ffffff", - "fontEdge": "none", - "fontEdgeColor": "#7F7F7F", - "fontOpacity": 100, - "backgroundColor": "#000000", - "backgroundOpacity": 100, - "textAlign": "center", - "textAlignVertical": "middle" - } - } - } -} diff --git a/cli/examples/closed-captions-settings.yaml b/cli/examples/closed-captions-settings.yaml deleted file mode 100644 index a75808ec..00000000 --- a/cli/examples/closed-captions-settings.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -methods: - closedcaptions.enabled: - response: | - function f(ctx, params) { - const ccs = ctx.get('closedCaptionsSettings'); - if ( params && params.hasOwnProperty('value') ) { - // Setter called: - // Cause an accessibility.onClosedCaptionsSettingsChanged event - // (done via post-method trigger on closedcaptions.enabled method) - // Save for when accessibility.closedCaptionsSettings is called - ccs.enabled = params.value; - ctx.set('closedCaptionsSettings', ccs); - return true; - } else { - // Getter called: - // Return what we last saved when this func was called as a setter - return ccs.enabled; - } - } - accessibility.closedCaptionsSettings: - response: | - function f(ctx, params) { - // Getter called... Return our stashed value, per last setter call - const ccs = ctx.get('closedCaptionsSettings'); - return ccs; - } diff --git a/server/src/index.mjs b/server/src/index.mjs index 42f924f5..e3705a42 100644 --- a/server/src/index.mjs +++ b/server/src/index.mjs @@ -27,7 +27,6 @@ import * as commandLine from './commandLine.mjs'; import { getUserIdFromReq } from './util.mjs'; import * as userManagement from './userManagement.mjs'; import * as stateManagement from './stateManagement.mjs'; - // -------------------------------------------------- Web Socket -------------------------------------------------- import { createServer } from 'http'; @@ -59,6 +58,7 @@ server.on('upgrade', function upgrade(request, socket, head) { } }); + // Starter user(s) logger.info('Adding user 123...'); stateManagement.addUser('123'); userManagement.addUser('123'); logger.info('Adding user 456...'); stateManagement.addUser('456'); userManagement.addUser('456');