@bloks/link-session-manager
Advanced tools
Comparing version 0.2.635 to 0.2.636
/** | ||
* proton-link-session-manager v0.2.635 | ||
* proton-link-session-manager v0.2.636 | ||
* https://github.com/greymass/proton-link-session-manager | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* proton-link-session-manager v0.2.635 | ||
* proton-link-session-manager v0.2.636 | ||
* https://github.com/greymass/proton-link-session-manager | ||
@@ -171,2 +171,3 @@ * | ||
var newUrl = typeof url === 'function' ? url(this) : url; | ||
console.log('Creating new websocket to', newUrl); | ||
this.pendingReconnect = undefined; | ||
@@ -284,2 +285,3 @@ this.realWs = new WebSocket(newUrl); | ||
RobustWebSocket.prototype.close = function (code, reason) { | ||
console.log('Closing Websocket'); | ||
if (typeof code !== 'number') { | ||
@@ -298,2 +300,3 @@ reason = code; | ||
RobustWebSocket.prototype.open = function () { | ||
console.log('Opening Websocket'); | ||
if (this.realWs && | ||
@@ -309,2 +312,3 @@ this.realWs.readyState !== WebSocket.OPEN && | ||
RobustWebSocket.prototype.reconnect = function (event) { | ||
console.log('Reconnecting Websocket'); | ||
if ((!this.opts.handle1000 && event.code === 1000) || this.explicitlyClosed) { | ||
@@ -311,0 +315,0 @@ this.attempts = 0; |
/** | ||
* proton-link-session-manager v0.2.635 | ||
* proton-link-session-manager v0.2.636 | ||
* https://github.com/greymass/proton-link-session-manager | ||
@@ -144,2 +144,3 @@ * | ||
const newUrl = typeof url === 'function' ? url(this) : url; | ||
console.log('Creating new websocket to', newUrl); | ||
this.pendingReconnect = undefined; | ||
@@ -229,2 +230,3 @@ this.realWs = new WebSocket(newUrl); | ||
close(code, reason) { | ||
console.log('Closing Websocket'); | ||
if (typeof code !== 'number') { | ||
@@ -243,2 +245,3 @@ reason = code; | ||
open() { | ||
console.log('Opening Websocket'); | ||
if (this.realWs && | ||
@@ -254,2 +257,3 @@ this.realWs.readyState !== WebSocket.OPEN && | ||
reconnect(event) { | ||
console.log('Reconnecting Websocket'); | ||
if ((!this.opts.handle1000 && event.code === 1000) || this.explicitlyClosed) { | ||
@@ -256,0 +260,0 @@ this.attempts = 0; |
{ | ||
"name": "@bloks/link-session-manager", | ||
"description": "Session management for signature providers when receiving requests using the Anchor Link protocol", | ||
"version": "0.2.635", | ||
"version": "0.2.636", | ||
"homepage": "https://github.com/greymass/proton-link-session-manager", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause", |
@@ -94,2 +94,4 @@ import NetInfo, {NetInfoState, NetInfoSubscription} from '@react-native-community/netinfo' | ||
const newUrl = typeof url === 'function' ? url(this) : url | ||
console.log('Creating new websocket to', newUrl) | ||
this.pendingReconnect = undefined | ||
@@ -197,2 +199,4 @@ this.realWs = new WebSocket(newUrl) | ||
close(code, reason) { | ||
console.log('Closing Websocket') | ||
if (typeof code !== 'number') { | ||
@@ -214,2 +218,4 @@ reason = code | ||
open() { | ||
console.log('Opening Websocket') | ||
if ( | ||
@@ -229,2 +235,4 @@ this.realWs && | ||
reconnect(event) { | ||
console.log('Reconnecting Websocket') | ||
if ((!this.opts.handle1000 && event.code === 1000) || this.explicitlyClosed) { | ||
@@ -231,0 +239,0 @@ this.attempts = 0 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102379
1754