Some checks failed
REUSE Compliance Check / lint (push) Failing after 0s
Browser E2E / Test (push) Failing after 3s
Test / test (1.24) (push) Failing after 0s
Test / test-i386 (1.25) (push) Failing after 0s
Test / test-i386 (1.24) (push) Failing after 0s
Test / test-windows (1.25) (push) Failing after 0s
Test / test-windows (1.24) (push) Failing after 0s
Test / test (1.25) (push) Failing after 0s
Examples Tests / Test (push) Failing after 3s
Test / test-macos (1.25) (push) Failing after 0s
Test / test-macos (1.24) (push) Failing after 0s
Go mod tidy / tidy (push) Failing after 0s
Test / test-wasm (push) Failing after 0s
CodeQL / analyze (push) Failing after 1s
Fuzz / fuzz (push) Failing after 0s
27 lines
669 B
Markdown
27 lines
669 B
Markdown
# 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`:
|
|
```sh
|
|
go install github.com/pion/webrtc/v4/examples/pion-to-pion/answer@latest
|
|
answer
|
|
```
|
|
Next, run `offer`:
|
|
```sh
|
|
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:
|
|
```sh
|
|
docker-compose up -d
|
|
```
|
|
|
|
Now, you can see message exchanging, using `docker logs`.
|