From cd89779bb33e89fdda321025ed675ce689472d13 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 11 Jun 2026 16:13:57 +0000 Subject: [PATCH] Use tagged schema for websocket pong parsing Co-authored-by: Julius Marminge --- packages/client-runtime/src/wsRpcProtocol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client-runtime/src/wsRpcProtocol.ts b/packages/client-runtime/src/wsRpcProtocol.ts index 1a6a176882..ed419ae32d 100644 --- a/packages/client-runtime/src/wsRpcProtocol.ts +++ b/packages/client-runtime/src/wsRpcProtocol.ts @@ -72,7 +72,7 @@ export type WsRpcProtocolClient = export type WsRpcProtocolSocketUrlProvider = string | (() => Promise); const decodeRpcPongMessage = Schema.decodeUnknownOption( - Schema.fromJsonString(Schema.Struct({ _tag: Schema.Literal("Pong") })), + Schema.fromJsonString(Schema.TaggedStruct("Pong", {})), ); function formatSocketErrorMessage(error: unknown): string {