controllerly-core
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

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.

Package Sidebar

Install

npm i controllerly-core

Weekly Downloads

14

Version

0.3.3

License

MIT

Unpacked Size

86.5 kB

Total Files

33

Last publish

Collaborators

  • marcoklein