react-native-sse icon indicating copy to clipboard operation
react-native-sse copied to clipboard

does not establish connection after app is actived from sleep mode

Open kriit24 opened this issue 1 year ago • 2 comments

It does not do anything "close" connection when app goes to sleep mode. And does not recognize that connection was lost.

Therefor it cannot re-establish connection when app comes active after sleep mode. Set time out is also killed on sleep mode.

kriit24 avatar Jun 03 '24 07:06 kriit24

This happens with me too

msalaheldin-oanda avatar Jun 19 '24 13:06 msalaheldin-oanda

same issue for me

maksim-romanov avatar Aug 02 '24 16:08 maksim-romanov

EmilJunker explained well how to connect the app state with the sse lifecycle: https://github.com/binaryminds/react-native-sse/pull/65#issuecomment-2317395615

wojciechkrol avatar Jul 01 '25 21:07 wojciechkrol