|
@@ -1742,7 +1742,7 @@ DataConnection.prototype.initialize = function(dc) {
|
|
|
|
|
|
DataConnection.prototype._configureDataChannel = function() {
|
|
DataConnection.prototype._configureDataChannel = function() {
|
|
var self = this;
|
|
var self = this;
|
|
- if (util.supports.binary) {
|
|
|
|
|
|
+ if (util.supports.sctp) {
|
|
this._dc.binaryType = 'arraybuffer';
|
|
this._dc.binaryType = 'arraybuffer';
|
|
}
|
|
}
|
|
this._dc.onopen = function() {
|
|
this._dc.onopen = function() {
|
|
@@ -1830,7 +1830,7 @@ DataConnection.prototype.send = function(data) {
|
|
var utf8 = (this.serialization === 'binary-utf8');
|
|
var utf8 = (this.serialization === 'binary-utf8');
|
|
var blob = util.pack(data, utf8);
|
|
var blob = util.pack(data, utf8);
|
|
// DataChannel currently only supports strings.
|
|
// DataChannel currently only supports strings.
|
|
- if (!util.supports.binary) {
|
|
|
|
|
|
+ if (!util.supports.sctp) {
|
|
util.blobToBinaryString(blob, function(str) {
|
|
util.blobToBinaryString(blob, function(str) {
|
|
self._dc.send(str);
|
|
self._dc.send(str);
|
|
});
|
|
});
|