MCPcopy Index your code
hub / github.com/tinyplex/tinybase / receivePayloadRemainder

Function receivePayloadRemainder

src/synchronizers/common.ts:41–53  ·  view source on GitHub ↗
(
  fromClientId: Id,
  remainder: string,
  receive: Receive,
)

Source from the content-addressed store, hash-verified

39};
40
41const receivePayloadRemainder = (
42 fromClientId: Id,
43 remainder: string,
44 receive: Receive,
45) =>
46 receive(
47 fromClientId,
48 ...(jsonParseWithUndefined(remainder) as [
49 requestId: IdOrNull,
50 message: Message,
51 body: any,
52 ]),
53 );
54
55export const receivePayload = (payload: string, receive: Receive) =>
56 ifPayloadValid(payload, (fromClientId, remainder) =>

Callers 2

receivePayloadFunction · 0.70
createPayloadReceiverFunction · 0.70

Calls 1

jsonParseWithUndefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…