MCPcopy
hub / github.com/nestjs/nest / frame

Function frame

integration/microservices/e2e/tcp-json-socket-pipeline.spec.ts:26–29  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

24}
25
26function frame(obj: unknown): string {
27 const json = JSON.stringify(obj);
28 return `${json.length}#${json}`;
29}
30
31/**
32 * Decode as many complete `"<len>#<json>"` frames as possible from `raw`,

Calls

no outgoing calls

Tested by

no test coverage detected