github.com/pion/webrtc/v4@v4.0.1/examples/pion-to-pion/README.md (about) 1 # pion-to-pion 2 pion-to-pion is an example of two pion instances communicating directly! 3 4 The SDP offer and answer are exchanged automatically over HTTP. 5 The `answer` side acts like a HTTP server and should therefore be ran first. 6 7 ## Instructions 8 First run `answer`: 9 ```sh 10 go install github.com/pion/webrtc/v4/examples/pion-to-pion/answer 11 answer 12 ``` 13 Next, run `offer`: 14 ```sh 15 go install github.com/pion/webrtc/v4/examples/pion-to-pion/offer 16 offer 17 ``` 18 19 You should see them connect and start to exchange messages. 20 21 ## You can use Docker-compose to start this example: 22 ```sh 23 docker-compose up -d 24 ``` 25 26 Now, you can see message exchanging, using `docker logs`.