Screens-Viewer
Connects to a screens server with websockets and fires events on url change.
Example Usage
const Viewer = ;// Create new viewer, give the url of the api which should be connected to.// storageObject is a persistend storage object has asynchronous getItem and setItem methods.const viewer = 'https://example.com' storageObject;viewerstart;// The url has changedviewer;// A reload has been forcedviewer;// E.g. The viewer has started but cannot connected to the server.viewer;
Developing
Dependencies go into build/package.json
so they get installed from production.
Commands:
npm run build
- Builds
npm run test
- Runs tests