Files
renovate[bot] 4f1a2879dc Update golang Docker tag to v1.25
Generated by renovateBot
2025-08-14 02:47:34 +00:00
..
2025-08-14 02:47:34 +00:00
2025-08-14 02:47:34 +00:00
2023-05-05 11:58:49 -04:00
2025-04-02 14:35:49 +02:00
2023-05-05 11:58:49 -04:00

pion-to-pion

pion-to-pion is an example of two pion instances communicating directly!

The SDP offer and answer are exchanged automatically over HTTP. The answer side acts like a HTTP server and should therefore be ran first.

Instructions

First run answer:

go install github.com/pion/webrtc/v4/examples/pion-to-pion/answer@latest
answer

Next, run offer:

go install github.com/pion/webrtc/v4/examples/pion-to-pion/offer@latest
offer

You should see them connect and start to exchange messages.

You can use Docker-compose to start this example:

docker-compose up -d

Now, you can see message exchanging, using docker logs.