MCPcopy Create free account
hub / github.com/middleapi/orpc / constructor

Method constructor

packages/standard-server-peer/src/client.ts:26–33  ·  view source on GitHub ↗
(
    send: EncodedMessageSendFn,
  )

Source from the content-addressed store, hash-verified

24 private readonly peer: experimental_ClientPeerWithoutCodec
25
26 constructor(
27 send: EncodedMessageSendFn,
28 ) {
29 // eslint-disable-next-line new-cap
30 this.peer = new experimental_ClientPeerWithoutCodec(async ([id, type, payload]) => {
31 await send(await encodeRequestMessage(id, type, payload))
32 })
33 }
34
35 get length(): number {
36 return this.peer.length

Callers

nothing calls this directly

Calls 2

encodeRequestMessageFunction · 0.90
sendFunction · 0.85

Tested by

no test coverage detected