Q: why does utils/stream.ts/write() fail silently by default? #4311
Unanswered
georgernstgraf
asked this question in
Q&A
Replies: 1 comment
-
Okay, I think I get it: I should trust the streams My updated code is here . Please close this discussion if you consider this correct ;-) thanks again! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I am doing an app with hono on node. see repo.
There is a long-running database job and I want to get updates from it pushed into the gui using sse's. Basically I got it doing what I need here, but I wanna know how it is meant by hono.
hono's stream.ts in write() has an empty
catch {}
here .. and when I insert a throw() here, everythings works great for me,writing to the closed stream throws and I can cleanup properly.
Your comments states sth. like "write you own stream if you wanna catch". ok.
The hono website recommends this:
But doing this, there is no option to change the stream.
Thank you so much! -- George
Beta Was this translation helpful? Give feedback.
All reactions