diff --git a/README.md b/README.md index 6ec9a5b..40dea3d 100644 --- a/README.md +++ b/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 ```