JSPM

@dlenroc/roku-odc

2.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q72303F
  • License MIT

Client for runtime utilities

Package Exports

  • @dlenroc/roku-odc
  • @dlenroc/roku-odc/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dlenroc/roku-odc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@dlenroc/roku-odc · NPM Version

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',
});