simply a little webRTC error handling, add more messages

This commit is contained in:
Matias Alejo Garcia 2014-06-07 19:12:24 -03:00
commit 521dd3efe5
6 changed files with 57 additions and 39 deletions

View file

@ -79,8 +79,9 @@ angular.module('copayApp.services')
}
});
});
w.on('openError', root.onErrorDigest);
w.on('connectionError', root.onErrorDigest);
w.on('connectionError', function(msg) {
root.onErrorDigest(msg);
});
w.on('connect', function(peerID) {
if (peerID) {
video.callPeer(peerID, handlePeerVideo);