Server-sent events - connection closes after one minute

I’ve got a node js server running express. I’ve got an endpoint that is supposed to emit new data to clients as it is sent to the server. For this I am using server-sent events.

Locally, the connection is being kept alive until the client closes it or the server restarts but in render the connection is terminated after 60 seconds. The shell prints out that the client has disconnected which means “on close” was sent, but I know the client didn’t do it. I realize that this is probably an intended limitation but I can find no communication regarding the limit and if there are ways to change it.

Is it possible to change the time before render closes the connection for me?

Thanks in advance

1 Like

The connection shouldn’t be terminated after 60 seconds. Can you share a way for me to reproduce this issue?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.