Slow connections & iOS connection error
Problem:
If you're experiencing slow connections or the iOS app can't connect at all, it's likely due to misconfigured reverse proxies. In over 95% of reported cases, the issue is that WebSocket connections are not properly established.
When a WebSocket fails, the client falls back to XHR, which is significantly slower and less reliable. The iOS app requires a working WebSocket and will not connect otherwise.
How to Check WebSocket Status in Chrome
Open Chrome and go to your Rocket.Chat instance.
Right-click anywhere on the page and click Inspect.
Go to the Network tab and press F5 to refresh the page.
In the filter bar, click on “WS” (WebSocket).
Look for a WebSocket entry that looks like this: wss://open.rocket.chat/sockjs/123/pbiz45rm/websocket
Click the WebSocket connection to inspect its headers. The below status code indicates a successful WebSocket handshake:
Status Code: 101 Switching Protocols
Then check the Response Headers. You should see something like:
Response headers Connection: Upgrade Sec-WebSocket-Accept: nXd/PfaHuA1Kx/ggJWAAy+96Ee4= Upgrade: websocket