launchdarkly / react-client-sdk

LaunchDarkly Client-side SDK for React.js
Other
86 stars 71 forks source link

[LaunchDarkly] Error on stream connection: {"isTrusted":true}, will continue retrying after n milliseconds. #316

Open ImLunaHey opened 1 month ago

ImLunaHey commented 1 month ago

Is this a support request? no

Describe the bug Error on stream connection errors happen after a user leaves a window open while the computer goes to sleep. This also happens at times on page reload.

To reproduce

  1. open a page open that uses streaming
  2. put the computer into sleep mode (easiest way is closing a laptop)
  3. wait 30s for sleep to fully kick-in
  4. wake the machine and notice the error in the console

Expected behavior No warning message on wake.

Logs

[LaunchDarkly] Error on stream connection: {"isTrusted":true}, will continue retrying after 663 milliseconds.

SDK version

3.4.0

Language version, developer tools N/A

OS/platform N/A

Additional context N/A

ImLunaHey commented 1 month ago

possibly related https://github.com/launchdarkly/react-client-sdk/issues/2 and https://github.com/launchdarkly/react-client-sdk/issues/123