DenoDDeno
Powered by
sachawS
Denoβ€’2y agoβ€’
3 replies
sachaw

Way too iterate over Deno.serve connections?

Hi, as a lot of the old http api's are now deprecated, I would like to know if there is a nice way to achieve the following:

Create a
Deno.serve
Deno.serve
instance, iterate over each request, my goal is to put this in an async generator that yields upgraded websockets.

This is doable with the
Deno.listen
Deno.listen
api, but now that the
Deno.serveHttp
Deno.serveHttp
is deprecated, I'm not sure how to proceed.

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

Reuse Deno.serve for other TCP connections
EsenteEEsente / help
3y ago
deno serve logs?
Jack MJJack M / help
2y ago
deno serve subcommand cleanup
Overlord SupremeOOverlord Supreme / help
17mo ago
Deno.serve() + sharp + streams
functiondjFfunctiondj / help
2y ago