github.com/pion/webrtc/v3@v3.2.24/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 export GO111MODULE=on 11 go install github.com/pion/webrtc/v3/examples/pion-to-pion/answer 12 answer 13 ``` 14 Next, run `offer`: 15 ```sh 16 go install github.com/pion/webrtc/v3/examples/pion-to-pion/offer 17 offer 18 ``` 19 20 You should see them connect and start to exchange messages. 21 22 ## You can use Docker-compose to start this example: 23 ```sh 24 docker-compose up -d 25 ``` 26 27 Now, you can see message exchanging, using `docker logs`.