MCPcopy Index your code
hub / github.com/codeaashu/claude-code / writeBatch

Function writeBatch

src/bridge/replBridgeTransport.ts:274–283  ·  view source on GitHub ↗
(msgs)

Source from the content-addressed store, hash-verified

272 return ccr.writeEvent(msg)
273 },
274 async writeBatch(msgs) {
275 // SerialBatchEventUploader already batches internally (maxBatchSize=100);
276 // sequential enqueue preserves order and the uploader coalesces.
277 // Check closed between writes to avoid sending partial batches after
278 // transport teardown (epoch mismatch, SSE drop).
279 for (const m of msgs) {
280 if (closed) break
281 await ccr.writeEvent(m)
282 }
283 },
284 close() {
285 closed = true
286 ccr.close()

Callers

nothing calls this directly

Calls 1

writeEventMethod · 0.80

Tested by

no test coverage detected