Browse Source
Log the connection state after 5 seconds
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
pull/108/head
Lukas Reschke
9 years ago
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with
3 additions and
1 deletions
-
js/webrtc.js
|
|
|
@ -170,7 +170,9 @@ var webrtc; |
|
|
|
console.log('Connection established.'); |
|
|
|
break; |
|
|
|
case 'disconnected': |
|
|
|
OCA.SpreedMe.webrtc.removePeers(peer.id); |
|
|
|
setTimeout(function() { |
|
|
|
console.log('5 seconds passed! Let us check what the state is.', peer.pc.iceConnectionState); |
|
|
|
}, 5000); |
|
|
|
console.log('Disconnected.'); |
|
|
|
break; |
|
|
|
case 'failed': |
|
|
|
|