Use freeice for STUN and TURN.

nb/hide-http
Alex Kern 11 years ago
parent b8433ae1c4
commit 777d50bb71

@ -1,4 +1,5 @@
import uuid from 'node-uuid' import uuid from 'node-uuid'
import freeice from 'freeice'
const id = uuid.v4() const id = uuid.v4()
@ -9,7 +10,10 @@ if (typeof window === 'undefined') {
var peer = new Peer(id, { var peer = new Peer(id, {
host: window.location.hostname, host: window.location.hostname,
port: window.location.port, port: window.location.port,
path: '/peer' path: '/peer',
config: {
iceServers: freeice()
}
}) })
} }

@ -19,10 +19,13 @@
"dependencies": { "dependencies": {
"alt": "^0.14.4", "alt": "^0.14.4",
"babel": "^4.7.16", "babel": "^4.7.16",
"babelify": "^5.0.4",
"bases": "^0.2.1", "bases": "^0.2.1",
"browserify": "^9.0.3",
"browserify-middleware": "^5.0.2", "browserify-middleware": "^5.0.2",
"classnames": "^1.2.0", "classnames": "^1.2.0",
"express": "^4.12.0", "express": "^4.12.0",
"freeice": "^2.1.2",
"morgan": "^1.5.2", "morgan": "^1.5.2",
"nib": "^1.1.0", "nib": "^1.1.0",
"node-uuid": "^1.4.3", "node-uuid": "^1.4.3",
@ -33,9 +36,7 @@
"react-router": "^0.13.1", "react-router": "^0.13.1",
"socket.io": "^1.3.5", "socket.io": "^1.3.5",
"socket.io-client": "^1.3.5", "socket.io-client": "^1.3.5",
"stylus": "^0.50.0", "stylus": "^0.50.0"
"babelify": "^5.0.4",
"browserify": "^9.0.3"
}, },
"engines": { "engines": {
"node": "0.10.x" "node": "0.10.x"

Loading…
Cancel
Save