Configuration object for the RPC backend.
Optional
endpoint?: string(Optional) The specific endpoint path to append to the base URL.
The base URL of the RPC server.
A Layer instance that provides the configured RPC client.
FetchHttpClient.layer
for HTTP transport using the Fetch API.RpcSerialization.layerNdjson
for NDJSON serialization.Use createEffectRPC instead. It does the same thing, but with a more descriptive name.
Creates an RPC backend layer using HTTP protocol.
This function constructs a layered RPC client configured to communicate with a remote endpoint over HTTP. It uses the Fetch API for HTTP requests and NDJSON for request/response serialization.