RocketChat / Rocket.Chat.Electron

Official OSX, Windows, and Linux Desktop Clients for Rocket.Chat
https://rocket.chat/
MIT License
1.58k stars 696 forks source link

Multiple services make desktop client disconnect when not focused. #2914

Closed florisvangeel closed 1 month ago

florisvangeel commented 1 month ago

Search before asking

Operating System

Operating System Version

Windows 10, OSX 12.6.8, Ubuntu 22.04

It happens on the web browser too?

No, it just happens on the Desktop app

Rocket.Chat Desktop App Version

4.0.0

Rocket.Chat Server Version

6.6.6 and below

Describe the bug

Description:

Adding multiple services to a client restricts update of connection and notifications to the active (highlighted service)

Actual behavior:

Non focused services stuck in toaster trying to connect. No communication until hard reload Shift+CMD+R or SHIFT+CTRL+R

https://github.com/RocketChat/Rocket.Chat/assets/1267925/955a7485-7f3a-4db0-9516-04cca2668eba

Server Setup Information:

Client Setup Information

How to Reproduce

  1. Install Desktop client from app store or build latest 4.0.0
  2. Add multiple services besides open. and demo.rocket.chat
  3. focus and highlight one service
  4. Wait 15-60 minutes not touching or minimising the app.
  5. Click to one of the not focused services.

Describe your Expected behavior

Not focused services should maintain connection up and refresh notification etcetera.

Anything else

Additional context

Tested with transparent proxy in Caddy and Nginx as well as running RC directly behind NAT routing on dedicated IP number. All have the same issue.

Hypothesis is it must be the client not polling / connecting properly?

Relevant logs:

No Errors, just the usual warnings.

Are you willing to submit a code contribution?

reetp commented 1 month ago

Ran this on Linux with Electron 3.9.15 against 2 x 6.9.3 servers and open.rocket on 6.10.x and left it overnight.

No timeouts at all.

florisvangeel commented 1 month ago

i specifically stated all but open and demo.rocket.chat those are multi instances behind cloudflare proxy i don't use or trust cloudflare. Issue happens there also but with different symptoms, the 3 balls that never load.

This issue can be closed since its actually a server issue that is open here

~The good thing it has a patch to work with.~ Tested the patch, doesn't work it stays in 3 balls and never loads anything.

florisvangeel commented 1 month ago

closing issue