DenoDDeno
Powered by
maxM
Denoβ€’2y agoβ€’
4 replies
max

Deno.serve: Is it possible to flush a streaming response?

I've been playing around with this: https://docs.deno.com/examples/http-server-streaming

I am coming from Go and I'm used to having the functionality to flush the http response to the socket. Allowing lots of control over when bytes are sent over the wire (like so: https://robpike.io/)

Is there any mechanism to prompt deno to write to the socket? Maybe another streaming response type?

Thanks!
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How can I flush a stream to a response?
it's em!Iit's em! / help
3y ago
deno serve logs?
Jack MJJack M / help
2y ago
Close a Deno.serve() connection?
shawnbuSshawnbu / help
3y ago