Skip to content

Fix for Issue #18: Chunk streaming issues for traces with some browsers#19

Open
Sneakercopter wants to merge 1 commit intoanthropics:mainfrom
Sneakercopter:issue-18/fix-chunked-trace-fetching
Open

Fix for Issue #18: Chunk streaming issues for traces with some browsers#19
Sneakercopter wants to merge 1 commit intoanthropics:mainfrom
Sneakercopter:issue-18/fix-chunked-trace-fetching

Conversation

@Sneakercopter
Copy link
Copy Markdown

This PR applies the fix proposed in issue #18 where it was identified that hot reloading was not working on some browsers for bigger traces due to an issue with how Javascript was handling the chunked stream.

The fix applied introduces a new async function getBlobFromTrace which explicitly reads all chunks with a ReadableStream and then when complete creates and returns a blob of the results. This method is now called from both fetchAndOpen and repoll so that the both initial opening of a stream and repolling on file changes works correctly.

… in some browsers when fetching large traces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant