JSPM

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

Controllerly Core for Robust Connection Management with WebRTC.

Package Exports

  • controllerly-core

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 (controllerly-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm version Build Status Known Vulnerabilities NPM

controllerly-core

Controllerly Core for Robust Connection Management with WebRTC.

This is the core for Controllerly. It wraps around the PeerJs Data Connection and enhances the existing connection methods. All messages are tracked and performance is measured. Additionally, keep alive messages prevent the connection from "falling asleep".

Testing

The Karma test framework enables testing of JavaScript within a browser. Controllerly-Core is tested within a headless Chrome browser on travis. You may also run tests by installing Chrome on your PC.

Note that WebRTC has limited browser support by itself which is not tested by this project.

Goal of the testing is to create a real WebRTC connection and test code logic.

https://developers.google.com/web/updates/2017/06/headless-karma-mocha-chai#running_it_all_on_travis_ci

Testing requires an installed version of Chrome. For complete automated tests we could add puppetteer. They install a headless Chromium: https://github.com/GoogleChrome/puppeteer. Or use https://www.npmjs.com/package/download-chromium.