(request: Request, timeOrigin: number)
| 5230 | } |
| 5231 | |
| 5232 | function emitTimeOriginChunk(request: Request, timeOrigin: number): void { |
| 5233 | // We emit the time origin once. All ReactTimeInfo timestamps later in the stream |
| 5234 | // are relative to this time origin. This allows for more compact number encoding |
| 5235 | // and lower precision loss. |
| 5236 | request.pendingDebugChunks++; |
| 5237 | const row = ':N' + timeOrigin + '\n'; |
| 5238 | const processedChunk = stringToChunk(row); |
| 5239 | // TODO: Move to its own priority queue. |
| 5240 | request.completedDebugChunks.push(processedChunk); |
| 5241 | } |
| 5242 | |
| 5243 | function forwardDebugInfo( |
| 5244 | request: Request, |
no test coverage detected