X-Git-Url: https://git.kengrimes.com/?p=henge%2Fkiak.git;a=blobdiff_plain;f=client.js;h=69ac81e485c6dab006104c4db46c2306d7f775f8;hp=1c03da47abf91f6c3946d15596beb529b04b838c;hb=10b1fcdf58cde8a6c6d5ebfa4bba76ef2adcf3dd;hpb=fee7676065c0016e999b2069b6a2b1a28d2b48d4 diff --git a/client.js b/client.js index 1c03da4..69ac81e 100644 --- a/client.js +++ b/client.js @@ -32,7 +32,8 @@ function pollServer(url, clientPubKey, func) { func(url, clientPubKey, resolve, reject ) }) } -/* If https connection, should be already defined. If not https,*/ + +/* TODO: duplicate in both client.js and host.js */ function getPublicKey() { /* Check local storage for public key */ if (window.localStorage.getItem('public-key') === undefined) { @@ -65,8 +66,7 @@ cpc.createOffer().then((offer) => { /* Poll for answer */ return pollServer(window.location, offer, pollServerTimeout) }).then((answer) => { - /* TODO: Extract sdp from answer ?*/ console.log(answer) - /* State machine to parse answer */ + /* TODO: State machine to parse answer */ cpc.setRemoteDescription(answer.sdp) })