client add ICE
[henge/kiak.git] / main.js
diff --git a/main.js b/main.js
index 9187a77..a5b105b 100644 (file)
--- a/main.js
+++ b/main.js
@@ -66,9 +66,7 @@ const router = {
       const clients = route['clients']
       const headerData = request.headers['x-strapp-type']
 
-      if (route.socket === undefined ) {
-        console.log('route socket undefined')
-      }
+
 
       /* Client is INIT GET */
       if (headerData === undefined) {
@@ -88,7 +86,6 @@ const router = {
           data = Buffer.concat(data).toString();
           console.log('Sending ice-candidate-request to Host' + data)
           clients.set(data, response)
-
           route.socket.send(data)
         })
       }