소스 검색

Merge pull request #119 from sblaurock/add-datachannel

Added '.dataChannel' to DataConnection - a reference to the RTCDataChannel object.
Michelle Bu 11 년 전
부모
커밋
ecdbec68fc
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();
 }
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.