Emil Junker

Results 153 comments of Emil Junker

@amit13091992 You need to disable Flipper, see https://stackoverflow.com/questions/69235694/react-native-cant-connect-to-sse-in-android/69235695#answer-69235695 As long as Flipper is enabled, SSE won't work in debug builds on Android.

> this file is not available in my project, as I am using the new version of react-native. Just search your project for the word "Flipper". I assure you that...

> In Expo 51, `event-stream` is blocked by the dev tools interceptor. There is supposedly a fix for the Expo dev tools interceptor, available here: https://github.com/MartinHarkins/expo-sse-patch Did you try it?

This question has been asked before (see #37). I didn't understand it then and I don't understand it now. Could you be more specific about what you mean? When the...

You could simply add logic to automatically reconnect when no SSE event messages come in for x seconds, e.g. using setTimeout. That would usually imply that the connection is dead....

> i thought sses could detect when they lose connection, like we should have the `readyState` exposed for us to read. We already do an automatic reconnect when the readyState...

To get SSE working on Android with React Native versions prior to 0.74, you have to disable the Flipper plugin. See https://stackoverflow.com/questions/69235694/react-native-cant-connect-to-sse-in-android/69235695#answer-69235695 As long as Flipper is enabled, SSE won't...

> Okay but should work in iOS thought right ? Yes, but we can only help you if you show us the logs.

If everything was working correctly, there should be a lot more log messages of the kind ``` DEBUG [EventSource][onreadystatechange] ReadyState: LOADING(3), status: 200 ``` Are you sure that the SSE...

Does your app work if you connect to this SSE test endpoint instead of the actual backend? https://fetch-eventstream.glitch.me/sse