@dxos/messaging 0.7.5-main.499c70c → 0.7.5-main.937ce75

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.
@@ -2030,13 +2030,13 @@ var EdgeSignalManager = class extends Resource3 {
2030
2030
  }
2031
2031
  }, {
2032
2032
  F: __dxlog_file7,
2033
- L: 59,
2033
+ L: 60,
2034
2034
  S: this,
2035
2035
  C: (f, a) => f(...a)
2036
2036
  });
2037
2037
  }
2038
2038
  this._swarmPeers.set(topic, {
2039
- peer,
2039
+ lastState: peer.state,
2040
2040
  joinedPeers: new ComplexSet4(PeerInfoHash)
2041
2041
  });
2042
2042
  await this._edgeConnection.send(protocol.createMessage(SwarmRequestSchema, {
@@ -2073,7 +2073,7 @@ var EdgeSignalManager = class extends Resource3 {
2073
2073
  }
2074
2074
  }, {
2075
2075
  F: __dxlog_file7,
2076
- L: 92,
2076
+ L: 93,
2077
2077
  S: this,
2078
2078
  C: (f, a) => f(...a)
2079
2079
  });
@@ -2108,7 +2108,7 @@ var EdgeSignalManager = class extends Resource3 {
2108
2108
  _processSwarmResponse(message) {
2109
2109
  invariant6(protocol.getPayloadType(message) === SwarmResponseSchema.typeName, "Wrong payload type", {
2110
2110
  F: __dxlog_file7,
2111
- L: 129,
2111
+ L: 130,
2112
2112
  S: this,
2113
2113
  A: [
2114
2114
  "protocol.getPayloadType(message) === SwarmResponseSchema.typeName",
@@ -2122,7 +2122,7 @@ var EdgeSignalManager = class extends Resource3 {
2122
2122
  topic
2123
2123
  }, {
2124
2124
  F: __dxlog_file7,
2125
- L: 133,
2125
+ L: 134,
2126
2126
  S: this,
2127
2127
  C: (f, a) => f(...a)
2128
2128
  });
@@ -2159,7 +2159,7 @@ var EdgeSignalManager = class extends Resource3 {
2159
2159
  _processMessage(message) {
2160
2160
  invariant6(protocol.getPayloadType(message) === bufWkt.AnySchema.typeName, "Wrong payload type", {
2161
2161
  F: __dxlog_file7,
2162
- L: 166,
2162
+ L: 167,
2163
2163
  S: this,
2164
2164
  A: [
2165
2165
  "protocol.getPayloadType(message) === bufWkt.AnySchema.typeName",
@@ -2169,7 +2169,7 @@ var EdgeSignalManager = class extends Resource3 {
2169
2169
  const payload = protocol.getPayload(message, bufWkt.AnySchema);
2170
2170
  invariant6(message.source, "source is missing", {
2171
2171
  F: __dxlog_file7,
2172
- L: 168,
2172
+ L: 169,
2173
2173
  S: this,
2174
2174
  A: [
2175
2175
  "message.source",
@@ -2178,7 +2178,7 @@ var EdgeSignalManager = class extends Resource3 {
2178
2178
  });
2179
2179
  invariant6(message.target, "target is missing", {
2180
2180
  F: __dxlog_file7,
2181
- L: 169,
2181
+ L: 170,
2182
2182
  S: this,
2183
2183
  A: [
2184
2184
  "message.target",
@@ -2187,7 +2187,7 @@ var EdgeSignalManager = class extends Resource3 {
2187
2187
  });
2188
2188
  invariant6(message.target.length === 1, "target should have exactly one item", {
2189
2189
  F: __dxlog_file7,
2190
- L: 170,
2190
+ L: 171,
2191
2191
  S: this,
2192
2192
  A: [
2193
2193
  "message.target.length === 1",
@@ -2211,14 +2211,18 @@ var EdgeSignalManager = class extends Resource3 {
2211
2211
  swarms: Array.from(this._swarmPeers.keys())
2212
2212
  }, {
2213
2213
  F: __dxlog_file7,
2214
- L: 189,
2214
+ L: 190,
2215
2215
  S: this,
2216
2216
  C: (f, a) => f(...a)
2217
2217
  });
2218
- for (const [topic, { peer }] of this._swarmPeers.entries()) {
2218
+ for (const [topic, { lastState }] of this._swarmPeers.entries()) {
2219
2219
  await this.join({
2220
2220
  topic,
2221
- peer
2221
+ peer: {
2222
+ peerKey: this._edgeConnection.peerKey,
2223
+ identityKey: this._edgeConnection.identityKey,
2224
+ state: lastState
2225
+ }
2222
2226
  });
2223
2227
  }
2224
2228
  }
@@ -2297,4 +2301,4 @@ export {
2297
2301
  EdgeSignalManager,
2298
2302
  setIdentityTags
2299
2303
  };
2300
- //# sourceMappingURL=chunk-DEBKFM3X.mjs.map
2304
+ //# sourceMappingURL=chunk-YYX7KDG4.mjs.map