mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
update readme
This commit is contained in:
parent
4c1be0599f
commit
ca19e60f37
1 changed files with 10 additions and 22 deletions
32
README.md
32
README.md
|
@ -1,28 +1,16 @@
|
|||
```
|
||||
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
|
||||
On one computer do:
|
||||
|
||||
$ git clone https://github.com/schollz/croc.git && cd croc && git checkout v7
|
||||
$ go build -v
|
||||
$ cp croc croc1 # this is the file for sending, ~ 20 MB
|
||||
$ ./croc --send
|
||||
|
||||
|
||||
1: rtcOfferer
|
||||
On another computer do:
|
||||
|
||||
|
||||
createOffer
|
||||
setLocalDescription
|
||||
SEND offer
|
||||
RECIEVE answer
|
||||
setRemoteDescription(answer)
|
||||
|
||||
|
||||
2: rtcAnswerer
|
||||
|
||||
|
||||
setLocalDescription
|
||||
RECEIVE offer
|
||||
setRemoteDescription(offer)
|
||||
createAnswer
|
||||
SEND answer
|
||||
$ git clone https://github.com/schollz/croc.git && cd croc && git checkout v7
|
||||
$ go build -v
|
||||
$ ./croc --receive
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue