From 251ee2d932ad53039e8fc6b99424dc84ad18bbc3 Mon Sep 17 00:00:00 2001 From: jordan lavatai Date: Fri, 7 Jul 2017 09:56:37 -0700 Subject: [PATCH] just renaming commit --- .gitignore | 1 + .remote-sync.json | 17 +++++++++++++++++ client.js | 2 +- host.js | 2 +- main.js | 2 +- strapp.manifest | 1 - 6 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 .remote-sync.json delete mode 100644 strapp.manifest diff --git a/.gitignore b/.gitignore index 60e2017..03094a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ .tern-project *~ +.remote-sync.json diff --git a/.remote-sync.json b/.remote-sync.json new file mode 100644 index 0000000..4843ceb --- /dev/null +++ b/.remote-sync.json @@ -0,0 +1,17 @@ +{ + "transport": "scp", + "hostname": "strap.io", + "port": 22, + "username": "strapp", + "keyfile": "C:/Users/Jordan/.ssh/id_rsa", + "target": "/home/strapp/strapp.io/", + "ignore": [ + ".remote-sync.json", + ".git/**" + ], + "watch":[ + "/main.js", + "/host.js", + "/client.js" + ] +} diff --git a/client.js b/client.js index 9b58c5d..19ad38f 100644 --- a/client.js +++ b/client.js @@ -220,6 +220,6 @@ getPublicKey().then((cpk) => { }) document.addEventListener('DOMContentLoaded', () => { - document.body.innerHTML = `` + document.body.innerHTML = `` }); diff --git a/host.js b/host.js index 9814793..d280812 100644 --- a/host.js +++ b/host.js @@ -70,7 +70,7 @@ function handleNewClientConnection(offer) { console.log('Host: Finished sending ICE candidates') } } - console.log('Host: Sending answer to Client') + console.log('Host: Sending answer to Client ') wsock.send(JSON.stringify({ cmd: '< sdp pubKey', sdp: hpc.localDescription, diff --git a/main.js b/main.js index 136aee1..b2d4c7a 100644 --- a/main.js +++ b/main.js @@ -79,7 +79,7 @@ const router = { // (this happens when a client connects to an active route with no currently-online host) } else if (headerData.localeCompare('ice-candidate-request') === 0) { - console.log('Server: received ice-candidate-request from Client') + console.log('Server: received ice-candidate-request from Client ') let pubKey = request.headers['x-client-pubkey'] clients.set(pubKey, response) pubKey = '{ "pubKey": "' + pubKey + '" }' diff --git a/strapp.manifest b/strapp.manifest deleted file mode 100644 index af16a0e..0000000 --- a/strapp.manifest +++ /dev/null @@ -1 +0,0 @@ -CACHE MANIFEST -- 2.18.0