|
|
1 year ago | |
|---|---|---|
| .. | ||
| answer | 1 year ago | |
| offer | 1 year ago | |
| README.md | 1 year ago | |
| docker-compose.yml | 1 year ago | |
| test.sh | 1 year ago | |
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.
First run answer:
export GO111MODULE=on
go install github.com/pion/webrtc/v3/examples/pion-to-pion/answer
answer
Next, run offer:
go install github.com/pion/webrtc/v3/examples/pion-to-pion/offer
offer
You should see them connect and start to exchange messages.
docker-compose up -d
Now, you can see message exchanging, using docker logs.