Closed CyberNinja2007 closed 8 months ago
Hi @CyberNinja2007 ,
I'm trying to reproduce your issue but I don't see any errors on my side.
Here's the repo https://github.com/tncrazvan/sveltekit-sse-issue-29 I'm simulating some of your external calls with a 1 second delay.
If that doesn't clarify things, I'm not sure how else I could help you unfortunately, I would need a whole docker with a full example of what's going on, or at least more information on how to reproduce the issue.
Closing due to inactivity.
Hello! I've tried to create my simple app with messages that are saving to the PostgreSQL. There I have two pages - one is for creating them and the other is for viewing. On the viewing page I'm using this package to dynamically update messages without refreshing the page. When I work in dev and preview modes everything is alright, but when I try to build the app, I have some troubles. In builded app, I can see the server is receiving the messages and I can see that it is trying to send this data to the client, but nothing appears. After some time (1 minute maybe), I see this in console, but don't see any errors on server, just messages that connection is closed: After that is again freezed for some time and this thing repeats. Or it can get the updates, but only when the connection closing and I'm trying to recconect, after that it can again get errors. My code is somthing like that:
And the page is smth like that