snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit e573d5741979fa48fdbfebed4f3cedd7f82f9ea5
parent 6a1de2926782ad0ca861b078c31ad3de2bc6e172
Author: RobinLinus <robinlinus@users.noreply.github.com>
Date:   Fri, 21 Sep 2018 19:17:07 +0200

STUN server tests

Diffstat:
Mclient/scripts/network.js | 27+++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/client/scripts/network.js b/client/scripts/network.js @@ -18,7 +18,7 @@ class ServerConnection { clearTimeout(this._reconnectTimer); } - _isConnected() { + _isConnected(){ return this._socket && this._socket.readyState === this._socket.OPEN; } @@ -466,17 +466,16 @@ window.isRtcSupported = !!(window.RTCPeerConnection || window.mozRTCPeerConnecti RTCPeer.config = { 'iceServers': [{ - urls: 'stun:stun.stunprotocol.org:3478' - }, { - urls: 'stun:stun.l.google.com:19302' - }, { - url: 'turn:192.158.29.39:3478?transport=tcp', - credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=', - username: '28224511:1379330808' - }, { - urls: 'turn:turn.anyfirewall.com:443?transport=tcp', - credential: 'webrtc', - username: 'webrtc' - } - ] + urls: 'stun:stun.stunprotocol.org:3478' + }, { + urls: 'stun:stun.l.google.com:19302' + }, { + urls: 'turn:turn.bistri.com:80', + credential: 'homeo', + username: 'homeo' + }, { + urls: 'turn:turn.anyfirewall.com:443?transport=tcp', + credential: 'webrtc', + username: 'webrtc' + }] } \ No newline at end of file