RTCMultiConnection
RTCMultiConnection copied to clipboard
Reflect modern usages
I think this should be updated to reflect modern practices. Currently you're forced to use RTCMultiConnection in a global scope alongside socket.io and what no else. This is really bad practice. Yet you should bundle it using rollup or something else to support umd, amd, commonjs and es6. TS definitions would also improve the quality of this repository.
Something I've been at least experimenting with in my fork is rollup support. However, I'm not sure I'll ever finish it but would love to see if others are interested in helping out.
My main driver right now is HMR in react is giving me crazy results when it applies patches and I get something like this, likely caused by the global scoping.

Fork of this lib: https://github.com/Hacksore/RTCMultiConnection/tree/rollup My Project: https://github.com/Hacksore/pair-program