@dlenroc/roku-odc
v2.1.1
Published
Client for runtime utilities
Downloads
29
Readme
@dlenroc/roku-odc ·
Client for runtime utilities
Installation
npm install @dlenroc/roku-odc
Usage
⚠️
inject(app)
must be used to inject backend into your application
import { ODCExecutor, getRegistry } from '@dlenroc/roku-odc';
const ctx = new ODCExecutor({ address: 'http://<ip>:8061' });
const registry = await getRegistry(ctx);
console.log(registry);
Launch parameters
All of the above commands require the application to be up and running, but some of them can also be run using ECP during startup
await ecp.launch('dev', { odc_clear_registry: true });
await ecp.launch('dev', { odc_registry: /* state */ })
await ecp.launch('dev', { odc_channel_data: /* data */ })
await ecp.launch('dev', {
odc_entry_point: 'channel' | 'screensaver' | 'screensaver-settings',
});