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

Function offer

packages/rpc/src/RpcServer.ts:982–983  ·  view source on GitHub ↗
(data: Uint8Array | string)

Source from the content-addressed store, hash-verified

980 const parser = serialization.unsafeMake()
981
982 const offer = (data: Uint8Array | string) =>
983 typeof data === "string" ? mailbox.offer(encoder.encode(data)) : mailbox.offer(data)
984
985 clientIds.add(id)
986 const client: Client = {

Callers 1

RpcServer.tsFile · 0.70

Calls 2

encodeMethod · 0.80
offerMethod · 0.65

Tested by

no test coverage detected