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 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 api, but now that the Deno.serveHttp is deprecated, I'm not sure how to proceed.

Thanks.
Was this page helpful?