Replies: 4 comments 4 replies
-
someone ? |
Beta Was this translation helpful? Give feedback.
-
yes, that is a solution. ping timeout the timeout for the initial connection handshake changing these can give you a longer period of inactivity |
Beta Was this translation helpful? Give feedback.
-
Hi!
I think that's an expected behavior, the application is put in background and all connections are closed to save battery. References: |
Beta Was this translation helpful? Give feedback.
-
Hello guys, im having same problem. Im working on a react native chat app and when the app goes inactive or go into another app without closing it, the socket connection is closed. Than if other user sends a message, and i come back to AppState active, the message is not shown. How to deal with this case, any suggestion? Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
I have a application built in React Native (Mobile) and Node js (Backend). When user is in my app and goes to another app and stays in this app for few minutes, my socket is automatically disconnected.
I saw some 'fix' increasing pingTimeout and pingInterval, is it a solution or is there another solution?
Beta Was this translation helpful? Give feedback.
All reactions