MCPcopy Create free account
hub / github.com/Effect-TS/effect / layerNdJsonRpc

Function layerNdJsonRpc

packages/rpc/src/RpcSerialization.ts:562–565  ·  view source on GitHub ↗
(options?: {
  readonly contentType?: string | undefined
  readonly maxBufferSize?: number | "unbounded" | undefined
})

Source from the content-addressed store, hash-verified

560 * @category serialization
561 */
562export const layerNdJsonRpc = (options?: {
563 readonly contentType?: string | undefined
564 readonly maxBufferSize?: number | "unbounded" | undefined
565}): Layer.Layer<RpcSerialization> => Layer.succeed(RpcSerialization, ndJsonRpc(options))
566
567/**
568 * A rpc serialization layer that uses MessagePack for serialization.

Callers

nothing calls this directly

Calls 1

ndJsonRpcFunction · 0.85

Tested by

no test coverage detected