You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @xiongsongsong
Yes this is an expected behavior.
go-wasm-http-server first records the entire response then sends it in one piece to the browser.
So in your case the first 25 seconds are spent recording the response, then all the html content is sent in a whole chunk to the browser.
For now this kind of response "streaming" isn't possible.
There is a related issue #2, about using a ReadableStream for the response body, which should allow this kind of streaming.
I'm going to try using ReadableStream, I'll keep you updated.
when use golang direct run,it's perfect:
https://user-images.githubusercontent.com/342509/128476357-3f6f97de-7f09-4b16-97b7-39571450390c.mov
but with wasm, it's not work:
https://user-images.githubusercontent.com/342509/128476360-f9d80484-c6e4-4bb8-805d-5fc4273727e2.mov
The text was updated successfully, but these errors were encountered: