sachaw
sachaw
Explore posts from servers
DDeno
Created by sachaw on 7/13/2024 in #help
Importing deno modules with import maps
Hi, I am currently trying to import a deno library either locally or via url. The library contains a deno.json file containing an import map for jar packages. I have tried importing the mod.ts file (which thows an error complaining about local imports (no import map to resolve them). Also tried importing the deno.json but you can't import json modules like this AFAIK. Any ideas? Thanks.
5 replies
DDeno
Created by sachaw on 6/25/2024 in #help
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.
4 replies