Open the chat window at http://ip:3000/livechat. After the first message is sent, all conversations are not displayed, it could be displayed at Agent side, including own message and the Agent’s reply message. After the page is refreshed, all conversations can be displayed.
Server Setup Information
Version of Rocket.Chat Server: 4.2.2 and 3.9.0 and 3.7.1
Operating System: centos 7.6
Deployment Method:
Number of Running Instances:
DB Replicaset Oplog:
NodeJS Version: v12.22.8
MongoDB Version: 5.0.5
Proxy:
Firewalls involved:
Any additional Information
WebSocket connection to ‘ws://192.168.0.224:3000//websocket’ failed: Connection closed before receiving a handshake response
WebSocket is already in CLOSING or CLOSED state.
Uncaught (in promise) DOMException: Failed to execute ‘send’ on ‘WebSocket’: Still in CONNECTING state.
Check that “ip” (in your case 192.168.0.224, i guess) must be configured at the ROOT URL (Admin > General). I have found that sometimes, while changing this config, is good to restart the server to livechat external ip to take effect in the script.
Also, in Admin > Omnichannel > Livechat > Livechat Allowed Domains must be properly configured, or blank to allow all.
Are you running this locally?
While this is probably not a deployment issue, I always suggest to use docker or any container deployment method, in order to avoid any kind if dependencies troubles.