MCPcopy Index your code
hub / github.com/Effect-TS/effect / layerProtocolSocket

Function layerProtocolSocket

packages/rpc/src/RpcClient.ts:1249–1256  ·  view source on GitHub ↗
(options?: {
  readonly retryTransientErrors?: boolean | undefined
  readonly retrySchedule?: Schedule.Schedule<any, Socket.SocketError> | undefined
})

Source from the content-addressed store, hash-verified

1247 * @category protocol
1248 */
1249export const layerProtocolSocket = (options?: {
1250 readonly retryTransientErrors?: boolean | undefined
1251 readonly retrySchedule?: Schedule.Schedule<any, Socket.SocketError> | undefined
1252}): Layer.Layer<
1253 Protocol,
1254 never,
1255 Socket.Socket | RpcSerialization.RpcSerialization
1256> => Layer.scoped(Protocol, makeProtocolSocket(options))
1257
1258// internal
1259

Callers

nothing calls this directly

Calls 1

makeProtocolSocketFunction · 0.85

Tested by

no test coverage detected