-
SummaryHey folks, would appreciate an assist if someone spots what I'm doing wrong. I copied the example SSE handler from the docs and made a super small change to the return (below for completeness), and I have a React app frontend that makes a call to the backend to set up the stream (shown below the axum part). It is taking ~20 minutes for my SSE handler to respond and complete the original request, at which point I get the stream going. Am I doing something super wrong here? Eventually my goal is to have the handler return stuff from a database query, but I figure until I sort this part out I should keep it simple as possible. Thank you in advance!! axum handler
react request
axum version0.7.5 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For any unfortunate soul in the same position as me, the problem wasn't really the code on either the Rust or React side...it was Nginx. You can fix by changing the Sse handler into the following, see this link for details
|
Beta Was this translation helpful? Give feedback.
For any unfortunate soul in the same position as me, the problem wasn't really the code on either the Rust or React side...it was Nginx.
You can fix by changing the Sse handler into the following, see this link for details