rtcdatachannel Open-Source Projects
C/C++ WebRTC network library featuring Data Channels, Media Transport, and WebSocketsProject mention: Show HN: MockRTC – a mock peer and MitM proxy library for WebRTC | news.ycombinator.com | 2022-05-05
This does use a real WebRTC stack (specifically libdatachannel - https://libdatachannel.org). Under the hood this is making real WebRTC connections.
But I guess you mean why it doesn't mock using real peers in the browser where the tests are happening, using the browser's existing stack there?
There's a few reasons I've avoided that:
* Primarily: I want to do things that the browser APIs won't let you do. E.g. sending invalid data, or intentionally causing various types of errors. The browser APIs are designed to stop you doing the wrong thing, by keeping the raw data at arm's length. Very sensible for normal WebRTC usage, but bad for testing edge cases and breaking things.
rtcdatachannel related posts
Show HN: MockRTC – a mock peer and MitM proxy library for WebRTC
2 projects | news.ycombinator.com | 5 May 2022
FFmpeg - correct configuration for building webRTC in native C++?
3 projects | reddit.com/r/WebRTC | 3 May 2022
What are the differences between UDP and WebSockets, and which type of games benefit from which?
2 projects | reddit.com/r/gamedev | 2 May 2022
Wanting some advice on streaming audio from a raspberry pi to browsers.
1 project | reddit.com/r/WebRTC | 12 Dec 2021
Are you hiring? Post a new remote job listing for free.