7 Replies
Error: Argument of type 'StreamingApi' is not assignable to parameter of type 'WritableStream'.
Type 'StreamingApi' is missing the following properties from type 'WritableStream': writable, end, addListener, on, and 13 more.ts(2345)
(parameter) stream: StreamingApi
By the way I am using bun with hono
Syntax highlighting please
@Mosh Ontong where are you getting
PassThrough
from?
and how is archive
initialized?node
I already higlight with js
Is there another way to use the archive in hono?
is this what you're using? https://www.archiverjs.com/
no idea if that lib is compatible w bun. if not, this might be an alternative: https://bun.sh/guides/util/gzip
it seems like your goal is to take a stream, compress it, and then return it to the user, yeah?
have you tried
also
My problem right now is server crash when the file is 20002000 what?