applesauce-relay 0.0.0-next-20250430173639 → 0.0.0-next-20250430195256
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/relay.js +6 -2
- package/package.json +1 -1
package/dist/relay.js
CHANGED
|
@@ -251,7 +251,9 @@ export class Relay {
|
|
|
251
251
|
timeout({
|
|
252
252
|
first: this.eoseTimeout,
|
|
253
253
|
with: () => merge(of("EOSE"), NEVER),
|
|
254
|
-
})
|
|
254
|
+
}),
|
|
255
|
+
// Only create one upstream subscription
|
|
256
|
+
share());
|
|
255
257
|
// Wait for auth if required and make sure to start the watch tower
|
|
256
258
|
return this.waitForReady(this.waitForAuth(this.authRequiredForReq, observable));
|
|
257
259
|
}
|
|
@@ -281,7 +283,9 @@ export class Relay {
|
|
|
281
283
|
timeout({
|
|
282
284
|
first: this.eventTimeout,
|
|
283
285
|
with: () => of({ ok: false, from: this.url, message: "Timeout" }),
|
|
284
|
-
})
|
|
286
|
+
}),
|
|
287
|
+
// Only create one upstream subscription
|
|
288
|
+
share());
|
|
285
289
|
// skip wait for auth if verb is AUTH
|
|
286
290
|
if (verb === "AUTH")
|
|
287
291
|
return this.waitForReady(observable);
|