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

Function offer

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

Source from the content-addressed store, hash-verified

985 const parser = serialization.unsafeMake()
986
987 const offer = (data: Uint8Array | string) =>
988 typeof data === "string" ? mailbox.offer(encoder.encode(data)) : mailbox.offer(data)
989
990 clientIds.add(id)
991 const client: Client = {

Callers 1

RpcServer.tsFile · 0.70

Calls 2

encodeMethod · 0.80
offerMethod · 0.65

Tested by

no test coverage detected