Discussions

Ask a Question
Back to All

Stream talk API: disconnection after 2 minutes of inactivity

We built a Next.JS application using stream talk api. Everything is working perfectly until the user does not request new talks for about 120-150 seconds. When this happens, the connection drops and there is no way to restore it. The only way is to refresh the application, but this is not what we want because it would disrupt the entire User experience.

We perused the documentation and burned a lot of credits doing tests, but unfortunately we could not find a solution. We have an important demo next friday and we would like to be sure everything is perfect.

What is the recommended approach to keep alive the connection or to reconnect to the stream api in the background o without refreshing the application?

Thank you,

Best regards