Client cannot see new livechat messages until page refresh

Description

Clients using live chat widget do not see chat updates from themselves or agents unless they reload the page.

Client 1
Chrome stable v80
windows 10 v1904
Chrome beta v81

Client 2
Firefox v62
Windows 10 v1909

Agent can see all updates

Server Setup Information

  • Version of Rocket.Chat Server: 3.0.4
  • Operating System: CentOS 7
  • Deployment Method: manual install from docs
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 12.14.0
  • MongoDB Version: 4.0.17
  • Proxy: n/a
  • Firewalls involved: firewalld

Chat widget is on another centos7 machine running httpd

Any additional Information

Brand new install on fresh centos 7 updated
I don’t see any errors in chrome devtools.
Client posts 200 successfully when sending messages but can’t see them
Websocket gets succeed

Additional info. Replying as an agent via the android app still doesn’t show the client anything until they reload the page.

I somehow missed that this might be a cross-site cookie issue.

I also see websocket connection failed: connection closed before receiving a handshake response.

It takes 5-20 seconds for the live chat widget to show on page due to the web socket stalling

Moved the widget to the rocket.chat server and I’m still getting it and the websocket failures