Added PeerJs error handlers

This commit is contained in:
Kevin Jahns
2014-09-29 11:06:05 +02:00
parent 03d652f70b
commit 8fcd8f6809
42 changed files with 171 additions and 162 deletions

View File

@@ -9,6 +9,12 @@
callback = arguments[1];
} else {
peer = new Peer(arguments[0], arguments[1]);
peer.on('error', function(err) {
throw new Error("Peerjs connector: " + err);
});
peer.on('disconnected', function() {
throw new Error("Peerjs connector disconnected from signalling server. Cannot accept new connections. Not fatal, but not so good either..");
});
callback = arguments[2];
}
PeerJsConnector = (function() {

File diff suppressed because one or more lines are too long