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

Function broadcastError

packages/effect/src/unstable/rpc/RpcClient.ts:1045–1051  ·  view source on GitHub ↗
(error: RpcClientError)

Source from the content-addressed store, hash-verified

1043 const broadcast = (response: FromServerEncoded) =>
1044 Effect.forEach(clientIds, (clientId) => writeResponse(clientId, response))
1045 const broadcastError = (error: RpcClientError) => {
1046 currentError = error
1047 return broadcast({
1048 _tag: "ClientProtocolError",
1049 error
1050 })
1051 }
1052
1053 yield* Effect.suspend(() => {
1054 parser = serialization.makeUnsafe()

Callers 1

makeProtocolSocketFunction · 0.85

Calls 1

broadcastFunction · 0.85

Tested by

no test coverage detected