1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

update readme

This commit is contained in:
Zack Scholl 2019-11-13 07:50:31 -08:00
parent 4c1be0599f
commit ca19e60f37

View file

@ -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
```