From 777d50bb71130fe55bffd641829fc29e77795f13 Mon Sep 17 00:00:00 2001 From: Alex Kern Date: Wed, 15 Apr 2015 21:33:04 -0700 Subject: [PATCH] Use freeice for STUN and TURN. --- client/peer.js | 6 +++++- package.json | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/client/peer.js b/client/peer.js index 24baea3..69eac3b 100644 --- a/client/peer.js +++ b/client/peer.js @@ -1,4 +1,5 @@ import uuid from 'node-uuid' +import freeice from 'freeice' const id = uuid.v4() @@ -9,7 +10,10 @@ if (typeof window === 'undefined') { var peer = new Peer(id, { host: window.location.hostname, port: window.location.port, - path: '/peer' + path: '/peer', + config: { + iceServers: freeice() + } }) } diff --git a/package.json b/package.json index 7dfa4ed..b3fc148 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,13 @@ "dependencies": { "alt": "^0.14.4", "babel": "^4.7.16", + "babelify": "^5.0.4", "bases": "^0.2.1", + "browserify": "^9.0.3", "browserify-middleware": "^5.0.2", "classnames": "^1.2.0", "express": "^4.12.0", + "freeice": "^2.1.2", "morgan": "^1.5.2", "nib": "^1.1.0", "node-uuid": "^1.4.3", @@ -33,9 +36,7 @@ "react-router": "^0.13.1", "socket.io": "^1.3.5", "socket.io-client": "^1.3.5", - "stylus": "^0.50.0", - "babelify": "^5.0.4", - "browserify": "^9.0.3" + "stylus": "^0.50.0" }, "engines": { "node": "0.10.x"