浏览代码

Added '.dataChannel' to DataConnection - a reference to the RTCDataChannel object. Updated documentation to reflect changes.

Steve Blaurock 11 年之前
父节点
当前提交
e594d55ae6
共有 3 个文件被更改,包括 6 次插入1 次删除
  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",
         "type": "string",

文件差异内容过多而无法显示
+ 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. */
 DataConnection.prototype.initialize = function(dc) {
-  this._dc = dc;
+  this._dc = this.dataChannel = dc;
   this._configureDataChannel();
 }
 

部分文件因为文件数量过多而无法显示