From ca19e60f3722e5b7c5e50f2d49283c4c9615ba7d Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 13 Nov 2019 07:50:31 -0800 Subject: [PATCH] update readme --- README.md | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 6ec9a5be..40dea3d5 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 ```