(msgs)
| 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() |
nothing calls this directly
no test coverage detected