|
@@ -7,7 +7,8 @@ function DataConnection(peer, provider, options) {
|
|
|
|
|
|
// TODO: perhaps default serialization should be binary-utf8?
|
|
|
this.options = util.extend({
|
|
|
- serialization: 'binary'
|
|
|
+ serialization: 'binary',
|
|
|
+ reliable: true
|
|
|
}, options);
|
|
|
|
|
|
// Connection is not open yet.
|
|
@@ -54,7 +55,7 @@ DataConnection.prototype._configureDataChannel = function() {
|
|
|
}
|
|
|
|
|
|
// Use the Reliable shim for non Firefox browsers
|
|
|
- if (!util.supports.reliable) {
|
|
|
+ if (!util.supports.reliable && this.reliable) {
|
|
|
this._reliable = new Reliable(this._dc, util.debug);
|
|
|
}
|
|
|
|