| name | effect-facet-unstable-rpc-rpcclient |
| description | Guidance for facet `effect/unstable/rpc/RpcClient` focused on APIs like From, make, and FromGroup. Load after `effect-skill-router` when this facet is the primary owner. |
Effect Facet unstable/rpc/RpcClient
Owned scope
- Owns only
effect/unstable/rpc/RpcClient.
- Parent module:
effect/unstable/rpc.
- Source anchor:
packages/effect/src/unstable/rpc/RpcClient.ts.
What it is for
- Module-specific APIs and usage patterns for Effect programs.
API quick reference
From
make
FromGroup
layerProtocolHttp
layerProtocolSocket
layerProtocolWorker
makeNoSerialization
makeProtocolHttp
makeProtocolSocket
makeProtocolWorker
Flat
Protocol
RpcClient
withHeaders
CurrentHeaders
- Full API list:
references/api-reference.md
How to use it
- Start with constructor-style APIs to build values/services before composing operations.
- Keep runtime/execute APIs at edges; compose pure transformations before execution.
- Assume unstable APIs can evolve quickly; isolate usage behind thin local adapters.
Starter example
import { RpcClient } from "effect/unstable/rpc/RpcClient";
const value = RpcClient.From();
Common pitfalls
- Unstable module contracts may change; avoid coupling core app logic directly to experimental details.
- Prefer explicit, typed combinators over ad-hoc casting or unchecked assumptions.
Not covered here
- Sibling facets under the same parent are out of scope:
effect-facet-unstable-rpc-rpc (effect/unstable/rpc/Rpc)
effect-facet-unstable-rpc-rpcclienterror (effect/unstable/rpc/RpcClientError)
effect-facet-unstable-rpc-rpcgroup (effect/unstable/rpc/RpcGroup)
effect-facet-unstable-rpc-rpcmessage (effect/unstable/rpc/RpcMessage)
effect-facet-unstable-rpc-rpcmiddleware (effect/unstable/rpc/RpcMiddleware)
effect-facet-unstable-rpc-rpcschema (effect/unstable/rpc/RpcSchema)
effect-facet-unstable-rpc-rpcserialization (effect/unstable/rpc/RpcSerialization)
effect-facet-unstable-rpc-rpcserver (effect/unstable/rpc/RpcServer)
effect-facet-unstable-rpc-rpctest (effect/unstable/rpc/RpcTest)
effect-facet-unstable-rpc-rpcworker (effect/unstable/rpc/RpcWorker)
effect-facet-unstable-rpc-utils (effect/unstable/rpc/Utils)
- Parent module ownership belongs to
effect-module-unstable-rpc.
Escalate to
effect-module-unstable-rpc for parent module-wide workflows.
effect-skill-router for cross-module routing and ownership checks.
Reference anchors
- Facet source:
packages/effect/src/unstable/rpc/RpcClient.ts
- Parent tests:
packages/effect/test/cluster/MessageStorage.test.ts
- Parent tests:
packages/effect/test/rpc/Rpc.test.ts
- API details:
references/api-reference.md
- Usage notes:
references/usage-reference.md
- Ownership mapping:
references/owner.md