Michelle Bu 12 rokov pred
rodič
commit
6898a42ee5
4 zmenil súbory, kde vykonal 11 pridanie a 0 odobranie
  1. 3 0
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 5 0
      docs/api.md
  4. 3 0
      lib/peer.js

+ 3 - 0
dist/peer.js

@@ -1464,6 +1464,9 @@ Peer.prototype.disconnect = function() {
   }
 };
 
+/** The current browser. */
+Peer.browser = util.browserisms;
+
 /**
  * Provides a clean method for checking if there's an active connection to the
  * peer server.

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/peer.min.js


+ 5 - 0
docs/api.md

@@ -27,6 +27,11 @@ In the options, either a PeerServer Cloud `key` must be provided or `host` and `
 
 The `config` object is passed straight into instances of `RTCPeerConnection`. For compatibility with symmetric NATs, you can provide your own TURN server. By default the STUN server provided by Google is used.
 
+### Peer.browser
+
+The type of browser the client is on. Currently WebRTC DataChannels are not
+interoperable so different browser types should not be connected.
+
 ### peer.id
 
 The given id of this peer.

+ 3 - 0
lib/peer.js

@@ -305,6 +305,9 @@ Peer.prototype.disconnect = function() {
   }
 };
 
+/** The current browser. */
+Peer.browser = util.browserisms;
+
 /**
  * Provides a clean method for checking if there's an active connection to the
  * peer server.

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov