@dxos/echo-pipeline 0.3.10-main.ee543cf → 0.3.10-next.3e4f36f
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/lib/browser/{chunk-W3SSYW3X.mjs → chunk-6XOL2DVG.mjs} +1 -4
- package/dist/lib/browser/{chunk-W3SSYW3X.mjs.map → chunk-6XOL2DVG.mjs.map} +2 -2
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-KTFCZMAY.cjs → chunk-2RIO52RK.cjs} +4 -7
- package/dist/lib/node/{chunk-KTFCZMAY.cjs.map → chunk-2RIO52RK.cjs.map} +2 -2
- package/dist/lib/node/index.cjs +26 -26
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +15 -15
- package/package.json +33 -33
- package/src/automerge/automerge-host.test.ts +48 -51
- package/src/automerge/automerge-host.ts +0 -10
|
@@ -205,15 +205,6 @@ class MeshNetworkAdapter extends NetworkAdapter {
|
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
onStartReplication: async (info) => {
|
|
208
|
-
// Note: We store only one extension per peer.
|
|
209
|
-
// There can be a case where two connected peers have more than one teleport connection between them
|
|
210
|
-
// and each of them uses different teleport connections to send messages.
|
|
211
|
-
// It works because we receive messages from all teleport connections and Automerge Repo dedup them.
|
|
212
|
-
// TODO(mykola): Use only one teleport connection per peer.
|
|
213
|
-
if (this._extensions.has(info.id)) {
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
208
|
peerInfo = info;
|
|
218
209
|
// TODO(mykola): Fix race condition?
|
|
219
210
|
this._extensions.set(info.id, extension);
|
|
@@ -223,7 +214,6 @@ class MeshNetworkAdapter extends NetworkAdapter {
|
|
|
223
214
|
},
|
|
224
215
|
onSyncMessage: async ({ payload }) => {
|
|
225
216
|
const message = cbor.decode(payload) as Message;
|
|
226
|
-
// Note: automerge Repo dedup messages.
|
|
227
217
|
this.emit('message', message);
|
|
228
218
|
},
|
|
229
219
|
onClose: async () => {
|