Explorar el Código

Merge pull request #119 from sblaurock/add-datachannel

Added '.dataChannel' to DataConnection - a reference to the RTCDataChannel object.
Michelle Bu hace 11 años
padre
commit
ecdbec68fc
Se han modificado 3 ficheros con 6 adiciones y 1 borrados
  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",

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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();
 }
 

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio