We

WebRTC Data Channels Example

Hacker News

WebRTC Data Channels Example

https://github.com/TomasHubelbauer/webrtc-data-channel-demo Hi! I made this GitHub repo to try and show WebRTC data channels and the connection establishment flow in a different way from what I was able to find online. My aim with this repository is to make WebRTC data channels accessible to any web developer by showcasing offerer and answerer separately for total novices (makes it much clearer what's going on on each end of the connection) as well as combined approach where a peer can be both offerer and answerer. I use postMessage instead of a real signalling channel, because I got fed up with people bringing whatever 3rd party signalling solutions to their WebRTC tutorials and I want for this to be as simple to set up and run as possible. That's why it returns off file protocol - no server needed, just open and play! One more goal with this tutorial is to keep it up to date. Once a supported browser (Chrome, Firefox) starts complaining about a deprecated API or the WebRTC spec evolves, I try to rewrite the demo to use the latest and greatest. You can see that in me using async/await instead of promises which also tremendously helps readability. In the future, I will extend this to support mesh connection topology and make it possible to hold group conversations or multiple conversations at the same time. If you've been waiting to see what all the fuss with WebRTC is about, I hope this encourages you to start exploring. Any feedback is welcome!

Share card

Actual performance

91points
9comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
76%76% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: using, open, plain · Missing: mac, agents, macos
65%65% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
52%52% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way, para · Missing: mobile apps, ios, personal
48%48% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
34%34% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
18%18% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Co
Concurrent prime sieve in C with generic and typesafe Go-style channels44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Concurrent prime sieve in C with generic and typesafe Go-style channels

Hacker News1
Go
Go channels as a C library (with Obj-C wrapper)37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Go channels as a C library (with Obj-C wrapper)

Hacker News8
Wa
Wander – Create your own chat channels46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wander – Create your own chat channels

Hacker News3
Br
Browse the Moon's craters, mountains, lava channels and more55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Browse the Moon's craters, mountains, lava channels and more

Hacker News2
Contentful
Contentful30%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Manage content across channels

AppSumo
Et
Ethereum for Dummies: Difference Between SideChains and State Channels47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ethereum for Dummies: Difference Between SideChains and State Channels

Hacker News1
Et
Ethereum for Dummies: Difference Between SideChains and State Channels47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ethereum for Dummies: Difference Between SideChains and State Channels

Hacker News3
Ch
Chan – pure C implementation of Go channels46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Chan – pure C implementation of Go channels

Hacker News150
Ch
Channelshunt2.0 – Discover Next YouTube Channels48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Channelshunt2.0 – Discover Next YouTube Channels

Hacker News1
Best YouTube Channels
Best YouTube Channels23%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

youtube, channels, catalog

Indie Hackerscommitment-side-project