Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client-runtime): recover subscriptions that stop on a healthy connection #24400

Mergedjuliusmarmingemerged 10 commits intomain fromrefs/pull/24400/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 137 additions and 1 deletion (loading 2).

x
0 of 3 viewed, 3 left
137 additions and 1 deletionpackages/client-runtime/src/rpc/client.test.tsModified
View file
@@ -7,15 +7,17 @@
} from "@t3tools/contracts";
import { describe, expect, it } from "@effect/vitest";
import * as Cause from "effect/Cause";
+import * as Clock from "effect/Clock";
import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
import * as Fiber from "effect/Fiber";
import * as Option from "effect/Option";
import * as Queue from "effect/Queue";
import * as Ref from "effect/Ref";
+import * as Schema from "effect/Schema";
import * as Stream from "effect/Stream";
-import * as TestClock from "effect/testing/TestClock";
import * as SubscriptionRef from "effect/SubscriptionRef";
+import * as TestClock from "effect/testing/TestClock";
import { RpcClientError } from "effect/rpc";
​
import {
@@ -45,6 +47,8 @@
stage: "downloading",
};
​
+const decodeNumber = Schema.decodeUnknownEffect(Schema.Number);
+​
function session(client: WsRpcProtocolClient): RpcSession.RpcSession {
return {
client,