Skip to content
Demonstration of a browser connecting to Pion WebRTC without a signaling server.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
README.md Add 'What libraries' to README Dec 10, 2019
go.mod
go.sum
renovate.json
server.go

README.md

Pion WebRTC
Offline Browser Sync

WebRTC without a signaling server!

Pion webrtc Slack Widget
License: MIT


This repo demonstrates how you can connect two WebRTC proccesses without signaling. No configuration is needed ahead of time, so no hardcoding of IP Addresses. The peers use mDNS to connect to each other, and have pre-set ICE Credentials and DTLS Certificates.

Running

You should see the following in your terminal.

Ready to connect, please load https://jsfiddle.net/vksy1ujd/4/
Connection State has changed checking
Connection State has changed connected
DataChannel foo has opened

If everything worked you can now send messages from your browser to your terminal!

What this means

This means you can have two devices connect without any setup. No need to setup a server, or native apps with more control.

You could build stuff like.

  • Sync data between two PWA without a backend
  • Have a multiplayer game that never leaves your network
  • Build a conferencing/chat app that doesn't require any setup
  • Please share your cool ideas with us!

FAQ

Is this secure?

No currently everything is hardcoded, this is just a demonstration. I believe this could be reasonably secure if seeded properly. Better to ask a security person though.

What platforms are supported?

OSX and Linux

What browsers work?

Only Chromium so far. If there is interest I would like to support more

What libraries/dependencies does this use

Only Pion WebRTC it is a full Go implementation of WebRTC. It has zero C/C++ usage.

What is next?

I would like to get this into the IETF/W3C, but as an individual I am unable to be involved. If you are interested and have membership please reach out!

I want to talk about cool WebRTC stuff!

Join the Pion Slack

Community

Pion has an active community on the Golang Slack. Sign up and join the #pion channel for discussions and support. You can also use Pion mailing list.

We are always looking to support your projects. Please reach out if you have something to build!

If you need commercial support or don't want to use public methods you can contact us at team@pion.ly

License

MIT License - see LICENSE for full text

You can’t perform that action at this time.