MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / push

Method push

js/botasaurus-server-js/src/ndjson-http.ts:49–55  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

47 }
48
49 override push(data: any) {
50 const content = this.sep + JSON.stringify(data);
51 if (!this.sep) {
52 this.sep = ",";
53 }
54 return this.performWrite(content);
55 }
56
57 override preEnd() {
58 this.performWrite("]");

Callers 1

writeJsonFunction · 0.95

Calls 1

performWriteMethod · 0.45

Tested by

no test coverage detected