@streamr/sdk 103.6.0-rc.0 → 103.7.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/exports-umd.js
CHANGED
|
@@ -86110,6 +86110,9 @@
|
|
|
86110
86110
|
class SendFailed extends Err {
|
|
86111
86111
|
constructor(message, originalError) { super(ErrorCode.SEND_FAILED, message, originalError); }
|
|
86112
86112
|
}
|
|
86113
|
+
function logGapDiagnosticSampled(layer, opts = {}) {
|
|
86114
|
+
return;
|
|
86115
|
+
}
|
|
86113
86116
|
|
|
86114
86117
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
86115
86118
|
let Empty$Type$2 = class Empty$Type extends MessageType {
|
|
@@ -88501,7 +88504,7 @@
|
|
|
88501
88504
|
}
|
|
88502
88505
|
};
|
|
88503
88506
|
|
|
88504
|
-
var version$2 = "103.
|
|
88507
|
+
var version$2 = "103.7.0-rc.2";
|
|
88505
88508
|
|
|
88506
88509
|
const logger$y = new Logger('Handshaker');
|
|
88507
88510
|
// Optimally the Outgoing and Incoming Handshakers could be their own separate classes
|
|
@@ -88892,6 +88895,9 @@
|
|
|
88892
88895
|
}
|
|
88893
88896
|
send(data) {
|
|
88894
88897
|
if (this.lastState === 'connected') {
|
|
88898
|
+
logGapDiagnosticSampled('dht.dc.send', {
|
|
88899
|
+
detail: { bufferedAmount: this.dataChannel.bufferedAmount, queueLen: this.messageQueue.length }
|
|
88900
|
+
});
|
|
88895
88901
|
if (this.dataChannel.bufferedAmount > this.bufferThresholdHigh) {
|
|
88896
88902
|
this.messageQueue.push(data);
|
|
88897
88903
|
}
|
|
@@ -89072,7 +89078,7 @@
|
|
|
89072
89078
|
if (state === DisconnectedState.CLOSED ||
|
|
89073
89079
|
state === DisconnectedState.DISCONNECTED ||
|
|
89074
89080
|
state === DisconnectedState.FAILED) {
|
|
89075
|
-
this.doClose(false);
|
|
89081
|
+
this.doClose(false, `pcState=${state}`);
|
|
89076
89082
|
}
|
|
89077
89083
|
},
|
|
89078
89084
|
onDataChannel: (channel) => {
|
|
@@ -89125,6 +89131,9 @@
|
|
|
89125
89131
|
}
|
|
89126
89132
|
send(data) {
|
|
89127
89133
|
if (this.connected && this.dataChannel) {
|
|
89134
|
+
logGapDiagnosticSampled('dht.dc.send', {
|
|
89135
|
+
detail: { bufferedAmount: this.dataChannel.bufferedAmount, queueLen: this.messageQueue.length }
|
|
89136
|
+
});
|
|
89128
89137
|
if (this.dataChannel.bufferedAmount > this.bufferThresholdHigh) {
|
|
89129
89138
|
this.messageQueue.push(data);
|
|
89130
89139
|
}
|
|
@@ -89154,7 +89163,7 @@
|
|
|
89154
89163
|
};
|
|
89155
89164
|
dataChannel.onclose = () => {
|
|
89156
89165
|
logger$u.trace('dc.onClosed (worker)');
|
|
89157
|
-
this.doClose(false);
|
|
89166
|
+
this.doClose(false, 'dataChannel.onclose');
|
|
89158
89167
|
};
|
|
89159
89168
|
dataChannel.onerror = (err) => {
|
|
89160
89169
|
logger$u.warn('Data channel error (worker)', { err });
|
|
@@ -91407,7 +91416,7 @@
|
|
|
91407
91416
|
logger$d$1.debug(`Ring join on ${this.options.serviceId} timed out`);
|
|
91408
91417
|
}
|
|
91409
91418
|
finally {
|
|
91410
|
-
sessions.forEach((session) => this.
|
|
91419
|
+
sessions.forEach((session) => this.ongoingRingDiscoverySessions.delete(session.id));
|
|
91411
91420
|
}
|
|
91412
91421
|
}
|
|
91413
91422
|
async rejoinDht(entryPoint, contactedPeers = new Set(), distantJoinContactPeers = new Set()) {
|
|
@@ -93723,7 +93732,7 @@
|
|
|
93723
93732
|
}
|
|
93724
93733
|
}
|
|
93725
93734
|
|
|
93726
|
-
var version$1 = "103.
|
|
93735
|
+
var version$1 = "103.7.0-rc.2";
|
|
93727
93736
|
|
|
93728
93737
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
93729
93738
|
let Any$Type$1 = class Any$Type extends MessageType {
|
|
@@ -96464,6 +96473,7 @@
|
|
|
96464
96473
|
this.options.neighborFinder.stop();
|
|
96465
96474
|
this.options.neighborUpdateManager.stop();
|
|
96466
96475
|
this.options.inspector.stop();
|
|
96476
|
+
this.duplicateDetectors.clear();
|
|
96467
96477
|
}
|
|
96468
96478
|
broadcast(msg, previousNode) {
|
|
96469
96479
|
if (!previousNode) {
|
|
@@ -97323,6 +97333,9 @@
|
|
|
97323
97333
|
stop() {
|
|
97324
97334
|
this.abortController.abort();
|
|
97325
97335
|
this.neighbors.off('nodeRemoved', this.onNeighborRemoved);
|
|
97336
|
+
this.latestMessages.clear();
|
|
97337
|
+
this.recoveryState.clear();
|
|
97338
|
+
this.recoveryCooldownUntil.clear();
|
|
97326
97339
|
}
|
|
97327
97340
|
}
|
|
97328
97341
|
|