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

Function createPayload

src/synchronizers/common.ts:111–115  ·  view source on GitHub ↗
(
  toClientId: IdOrNull,
  ...args: [requestId: IdOrNull, message: Message, body: any]
)

Source from the content-addressed store, hash-verified

109};
110
111export const createPayload = (
112 toClientId: IdOrNull,
113 ...args: [requestId: IdOrNull, message: Message, body: any]
114): string =>
115 createRawPayload(toClientId ?? EMPTY_STRING, jsonStringWithUndefined(args));
116
117export const createRawPayload = (clientId: Id, remainder: string): string =>
118 clientId + MESSAGE_SEPARATOR + remainder;

Callers 1

fetchMethod · 0.90

Calls 2

jsonStringWithUndefinedFunction · 0.90
createRawPayloadFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…