@bloks/link-session-manager
Advanced tools
Comparing version 0.2.657 to 0.2.658
/** | ||
* proton-link-session-manager v0.2.657 | ||
* proton-link-session-manager v0.2.658 | ||
* https://github.com/greymass/proton-link-session-manager | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* proton-link-session-manager v0.2.657 | ||
* proton-link-session-manager v0.2.658 | ||
* https://github.com/greymass/proton-link-session-manager | ||
@@ -114,4 +114,4 @@ * | ||
this.reconnectWhenOnlineAgain = false; | ||
this.explicitlyClosed = false; | ||
this.enableAck = false; | ||
this.explicitlyClosed = false; | ||
this.binaryType = 'arraybuffer'; | ||
@@ -131,7 +131,2 @@ this.pendingReconnect = undefined; | ||
_this.reconnectWhenOnlineAgain = false; | ||
// Send ACK | ||
if (_this.enableAck) { | ||
var header = Buffer.from([0x42, 0x42, 0x00]); | ||
_this.send(header); | ||
} | ||
}, | ||
@@ -164,2 +159,3 @@ ], | ||
this.opts = tslib.__assign(tslib.__assign({}, this.opts), opts); | ||
this.enableAck = this.url.indexOf('?v2') !== -1; | ||
if (typeof this.opts.timeout !== 'number') { | ||
@@ -166,0 +162,0 @@ throw new Error('timeout must be the number of milliseconds to timeout a connection attempt'); |
/** | ||
* proton-link-session-manager v0.2.657 | ||
* proton-link-session-manager v0.2.658 | ||
* https://github.com/greymass/proton-link-session-manager | ||
@@ -88,4 +88,4 @@ * | ||
this.reconnectWhenOnlineAgain = false; | ||
this.explicitlyClosed = false; | ||
this.enableAck = false; | ||
this.explicitlyClosed = false; | ||
this.binaryType = 'arraybuffer'; | ||
@@ -105,7 +105,2 @@ this.pendingReconnect = undefined; | ||
this.reconnectWhenOnlineAgain = false; | ||
// Send ACK | ||
if (this.enableAck) { | ||
const header = Buffer.from([0x42, 0x42, 0x00]); | ||
this.send(header); | ||
} | ||
}, | ||
@@ -137,3 +132,7 @@ ], | ||
this.url = url; | ||
this.opts = { ...this.opts, ...opts }; | ||
this.opts = { | ||
...this.opts, | ||
...opts, | ||
}; | ||
this.enableAck = this.url.indexOf('?v2') !== -1; | ||
if (typeof this.opts.timeout !== 'number') { | ||
@@ -140,0 +139,0 @@ throw new Error('timeout must be the number of milliseconds to timeout a connection attempt'); |
{ | ||
"name": "@bloks/link-session-manager", | ||
"description": "Session management for signature providers when receiving requests using the Anchor Link protocol", | ||
"version": "0.2.657", | ||
"version": "0.2.658", | ||
"homepage": "https://github.com/greymass/proton-link-session-manager", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause", |
@@ -14,4 +14,5 @@ interface Options { | ||
public reconnectWhenOnlineAgain = false | ||
public explicitlyClosed = false | ||
public enableAck = false | ||
public explicitlyClosed = false | ||
public binaryType: BinaryType = 'arraybuffer' | ||
@@ -33,8 +34,2 @@ | ||
this.reconnectWhenOnlineAgain = false | ||
// Send ACK | ||
if (this.enableAck) { | ||
const header = Buffer.from([0x42, 0x42, 0x00]) | ||
this.send(header) | ||
} | ||
}, | ||
@@ -73,4 +68,9 @@ ], | ||
this.opts = {...this.opts, ...opts} | ||
this.opts = { | ||
...this.opts, | ||
...opts, | ||
} | ||
this.enableAck = this.url.indexOf('?v2') !== -1 | ||
if (typeof this.opts.timeout !== 'number') { | ||
@@ -77,0 +77,0 @@ throw new Error( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
95590
1613