This commit is contained in:
Julien Valverdé
2025-09-16 04:21:28 +02:00
parent d81f42d904
commit 6dbdd5b24a
19 changed files with 170 additions and 4 deletions

View File

@@ -0,0 +1,4 @@
import { Config } from "effect"
export const webRpcHttpPath = Config.succeed("/rpc/web" as const)

View File

@@ -0,0 +1 @@
export * as CommonConfig from "./CommonConfig"

View File

@@ -0,0 +1,4 @@
import * as WebRpcTest from "./WebRpcTest"
export class WebRpc extends WebRpcTest.WebRpcTest {}

View File

@@ -0,0 +1,11 @@
import { Rpc, RpcGroup } from "@effect/rpc"
import { Schema } from "effect"
export class PingV1 extends Rpc.make("Test.PingV1", {
success: Schema.Literal("pong"),
}) {}
export class WebRpcTest extends RpcGroup.make(
PingV1,
) {}

View File

@@ -0,0 +1,2 @@
export * as WebRpc from "./WebRpc"
export * as WebRpcTest from "./WebRpcTest"