Michelle Bu 12 年之前
父節點
當前提交
6898a42ee5
共有 4 個文件被更改,包括 11 次插入0 次删除
  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.

文件差異過大導致無法顯示
+ 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.

部分文件因文件數量過多而無法顯示