Live chat can't receive replies

Description

Live chat is not working, message can be sent from widget but can’t receive.

Server Setup Information

Rocket.Chat Version: 5.3.3 |
| NodeJS Version: 14.19.3 - x64 |
| MongoDB Version: 4.4.15 |
| MongoDB Engine: wiredTiger |
| Platform: linux / Docker |
| Process Port: 3001 |
| Site URL: https://my.server.com |
| ReplicaSet OpLog: Enabled |
| Commit Hash: c0e519b6f2 |
| Commit Branch: HEAD

  • Firewalls involved: No

Additional Information

Using cloudflare for this domain.

On browser console we have following errors:

WebSocket is already in CLOSING or CLOSED state.
Uncaught (in promise) DOMException: An attempt was made to use an object that is not, or is no longer, usable mode-ctr-gladman.js:114:1
Firefox can’t establish a connection to the server at wss://my.server.com/websocket. ddp.ts:96:21

Points to note:
I have already seen other topics like : LiveChat “Failed to execute ‘send’ on ‘WebSocket’: Still in CONNECTING state.”

I have done following:

  • There is no slash in end of url ie. its https: // my .server .com
  • Have already increased proxy_read_timeout 8600s;
  • Settings → General → Allowed domains is empty

Please advice where to look ?

Hi!

Sorry for the late response here. Were you able to fix this?

I would start adding the website you want to add the livechat widget into ADMIN > OMNICHANNEL > LIVECHAT> Allowed Sites.

let me know if this helps.

Thanks!