Browse Source

Merge pull request #119 from sblaurock/add-datachannel

Added '.dataChannel' to DataConnection - a reference to the RTCDataChannel object.
Michelle Bu 11 năm trước cách đây
mục cha
commit
ecdbec68fc
3 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 5 0
      docs/api.json
  2. 0 0
      docs/index.html
  3. 1 1
      lib/dataconnection.js

+ 5 - 0
docs/api.json

@@ -316,6 +316,11 @@
           }
           }
         ]
         ]
       },
       },
+      {
+        "name": ".dataChannel",
+        "type": "object",
+        "description": "A reference to the RTCDataChannel object associated with the connection."
+      },
       {
       {
         "name": ".label",
         "name": ".label",
         "type": "string",
         "type": "string",

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
docs/index.html


+ 1 - 1
lib/dataconnection.js

@@ -41,7 +41,7 @@ DataConnection._idPrefix = 'dc_';
 
 
 /** Called by the Negotiator when the DataChannel is ready. */
 /** Called by the Negotiator when the DataChannel is ready. */
 DataConnection.prototype.initialize = function(dc) {
 DataConnection.prototype.initialize = function(dc) {
-  this._dc = dc;
+  this._dc = this.dataChannel = dc;
   this._configureDataChannel();
   this._configureDataChannel();
 }
 }
 
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác