waku-org / js-waku

JavaScript implementation of Waku v2
https://js.waku.org
Apache License 2.0
167 stars 42 forks source link

investigate suspended js-waku in suspended mode #2000

Closed weboko closed 3 months ago

weboko commented 4 months ago
This is a **support request** ## Problem Investigate how `js-waku` behaves in following scenarios: - tab with js-waku get's suspended or laptop goes to sleep; - tab with lightPush or filter is kept for some time (10+ minutes); Once particular problems are found - let's create them as bugs and fix accordingly. ## Notes Part of: https://github.com/waku-org/js-waku/issues/2154
adklempner commented 4 months ago

Here's another scenario I tested which seems relevant:

  1. Open light-js in two separate browsers
  2. Subscribe to same topic on both
  3. Send a message from browser A and verify it appears in browser B
  4. In browser B set Network throttling to Offline
  5. Send another message from browser A
  6. Set network throttling off in browser B
  7. Send another message from browser A

When I tried this, browser B does not receive messages from steps 5 and 7.

adklempner commented 4 months ago

Running light push and filter for 10+ minutes:

  1. Open light-js in two separate browsers (modified to add a button that sends a message every 5 seconds)
  2. Subscribe to same topic on both
  3. In browser A, send a message using light push every 10 seconds

Results:

Around message 115 is when my laptop suspended After waking up:

danisharora099 commented 4 months ago

Thanks for the investigations @adklempner -- do you see some tangible issue creations coming out of this? I'm happy to continue this effort further

weboko commented 3 months ago

Closing as investigation was done and we don't have explicit improvement to do for now.