mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Configure TURN and STUN servers
This commit is contained in:
@@ -35,7 +35,7 @@ class GuestSession
|
||||
window.site = new telepath.Site(@getId())
|
||||
doc = window.site.deserializeDocument(data.doc)
|
||||
|
||||
servers = null
|
||||
servers = {iceServers: [{url: "turn:54.218.196.152:3478", credential:"youhavetoberealistic"}]}
|
||||
mediaConnection = new webkitRTCPeerConnection(servers)
|
||||
mediaConnection.onicecandidate = (event) =>
|
||||
return unless event.candidate?
|
||||
|
||||
@@ -19,7 +19,7 @@ class HostSession
|
||||
start: ->
|
||||
return if @peer?
|
||||
|
||||
servers = null
|
||||
servers = {iceServers: [{url: "turn:54.218.196.152:3478", credential:"youhavetoberealistic"}]}
|
||||
mediaConnection = new webkitRTCPeerConnection(servers)
|
||||
mediaConnection.onicecandidate = (event) =>
|
||||
return unless event.candidate?
|
||||
|
||||
@@ -23,7 +23,9 @@ module.exports =
|
||||
|
||||
createPeer: ->
|
||||
id = Guid.create().toString()
|
||||
new Peer(id, key: '0njqmaln320dlsor')
|
||||
key = '0njqmaln320dlsor'
|
||||
config = {iceServers: [{url: "turn:54.218.196.152:3478", credential:"youhavetoberealistic"}]}
|
||||
new Peer(id, {key, config})
|
||||
|
||||
connectDocument: (doc, connection) ->
|
||||
nextOutputEventId = 1
|
||||
|
||||
1
src/packages/collaboration/vendor/peer.js
vendored
1
src/packages/collaboration/vendor/peer.js
vendored
@@ -1135,7 +1135,6 @@ function Peer(id, options) {
|
||||
if (!(this instanceof Peer)) return new Peer(id, options);
|
||||
EventEmitter.call(this);
|
||||
|
||||
|
||||
options = util.extend({
|
||||
debug: false,
|
||||
host: '0.peerjs.com',
|
||||
|
||||
Reference in New Issue
Block a user