controllerly-core
v0.3.3
Published
Controllerly Core for Robust Connection Management with WebRTC.
Downloads
4
Maintainers
Readme
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.