uProxy-p2p
uProxy-p2p copied to clipboard
Add tests for webrtc/* and it's freedom interface (in uproxy-lib)
Including:
- a test for multiple data channels on a single connection (simple-webrtc-chat just has one)
- a test for the correct opening/closing of the connection given the peer's behaviour (e.g. should disconnect when peer disconnects)
In particular for: https://github.com/uProxy/uproxy-lib/blob/dev/src/freedom/interfaces/uproxypeerconnection.fdom-interface.ts and https://github.com/uProxy/uproxy-lib/blob/dev/src/webrtc/peerconnection.ts
So, we should definitely have tests for: https://github.com/uProxy/uproxy-lib/blob/dev/src/webrtc/peerconnection.ts
However, Freedom 0.6 will let us remove uproxypeerconnection: peerconnection.ts will wrap an instance of Freedom's lightweight webrtc wrapper.
This is very closely related to this issue which is a little more specific: https://github.com/uProxy/uproxy/issues/462