Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peer-to-peer HTTP over WebRTC #252

Open
espeed opened this issue Jan 17, 2025 · 2 comments
Open

Peer-to-peer HTTP over WebRTC #252

espeed opened this issue Jan 17, 2025 · 2 comments

Comments

@espeed
Copy link

espeed commented Jan 17, 2025

Does bifrost have support for P2P WebRTC from the browser using the WebRTC DataChannel ?

See https://github.com/ambianic/peerfetch
https://webrtchacks.com/private-home-surveillance-with-the-webrtc-datachannel/

@paralin
Copy link
Member

paralin commented Jan 18, 2025

Yes! That should already work in the current implementation. You will need a Webrtc transport controller on both ends, a peer controller on both ends. You can then tunnel http over the transport.

The existing demo in examples/ demonstrates this I think. I'll have a look at adding this as a specific example. Feel free to have a try and let me know if you get stuck.

@espeed
Copy link
Author

espeed commented Feb 7, 2025

Do you have an example of this working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants