mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
check ordering
This commit is contained in:
parent
e5bfe8530b
commit
5b5e97277e
4 changed files with 95 additions and 17 deletions
34
README.md
34
README.md
|
@ -1,18 +1,28 @@
|
|||
```
|
||||
# in the first terminal
|
||||
git clone https://github.com/schollz/croc.git
|
||||
cd croc
|
||||
git checkout v7
|
||||
cd src/webrtc/
|
||||
make sender
|
||||
Clients connect to websockets and broadcasts "ready".
|
||||
If client receives "ready" then it becomes the rtcOfferer and initiates (note that being an offerer does not mean it is the sender, that will be established later).
|
||||
Establish secure passphrase using PAKE
|
||||
Establish RTC communication
|
||||
Communication moves to the RTC channel
|
||||
|
||||
# in second terminal
|
||||
cd src/webrtc/
|
||||
make receive
|
||||
|
||||
# open up localhost:8003 and open console.
|
||||
# copy the last JSON output and save it into src/webrtc/answer.json
|
||||
1: rtcOfferer
|
||||
|
||||
# communication should ensue....
|
||||
|
||||
createOffer
|
||||
setLocalDescription
|
||||
SEND offer
|
||||
RECIEVE answer
|
||||
setRemoteDescription(answer)
|
||||
|
||||
|
||||
2: rtcAnswerer
|
||||
|
||||
|
||||
setLocalDescription
|
||||
RECEIVE offer
|
||||
setRemoteDescription(offer)
|
||||
createAnswer
|
||||
SEND answer
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue