Killian Di Vincenzo
Killian Di Vincenzo
HHono
Created by Killian Di Vincenzo on 4/28/2024 in #help
StreamSSE on http2
I found a workaround for a little time by doing :
const streams = await streamSSE(c, ...)
c.res.headers.delete("Transfer-Encoding");
streams.headers.delete("Transfer-Encoding");
return streams
const streams = await streamSSE(c, ...)
c.res.headers.delete("Transfer-Encoding");
streams.headers.delete("Transfer-Encoding");
return streams
And then, the server stop crash and clients managed to connect to the server ; but the stream disconnected immediately with the same error (but no more crash) : UnsupportedWarning: The provided connection header is not valid, the value will be dropped from the header and will never be in use.
5 replies
HHono
Created by Killian Di Vincenzo on 4/28/2024 in #help
StreamSSE on http2
Hi @Nico ! Sorry for responding late. I was using bun before using http2, but now I'm using nodeJS.
5 replies