Troubleshoot Recorder Connection Issuess
Our recording client streams audio and video data in real time to one of our media servers over a secure WebSocket (WSS) connection on port 443.
The connection is established as soon as the user presses [Record Video], [Record Audio], or [Record Screen] on the initial screen.
Initial Connection
Depending on the Region setting on your environment, the initial connection attempt will be made against one of four ingestion regions (infrastructures) across the world. We have two in the US and two in the EU.
Fallback mechanism between regions (US1 & US2 OR EU2 & EU3)
If the initial connection fails, the recording client can fall back to a second region. It first tries to connect to the region assigned to the recording, which is based on the Region setting of your environment (and, for the auto-detect options, on the user’s location).
Fallback only happens between regions on the same continent: US1 and US2 fall back to each other, and so do EU2 and EU3. A recording will never fall back from a US region to an EU region or vice versa (for example, from US1 to EU3).
The switch happens only once, right after the first connection attempt fails. For example, if a recording is assigned to US1 (N. California) and the client can’t connect to it, the client switches to US2 (New York). If connecting to US2 also fails, the client keeps retrying US2 up to 30 more times and does not switch back to US1. While it retries, the message “Not Connected (wss). Attempting to connect in a few seconds…” is shown at the top of the recording client.
The switch to the fallback region happens immediately, with no delay. After that, the delay between retries roughly doubles with each attempt, from about 1 second to 2 seconds to 4 seconds (with some random jitter), and is capped at 5 seconds. The jitter keeps many recorders that can’t connect at the same time from all reconnecting at the same moment. Each attempt can also wait up to 10 seconds for the server to respond before it counts as failed.
When a fallback happens, the resulting files, if stored by us, are also stored in the fallback region (US2 in this example).

Reconnection Mechanism
Connection drops are common: users switch from Wi-Fi to mobile data, lose signal in elevators or on trains, lock their phone or switch apps, lose power to the router for a split second, or sit behind high-latency Wi-Fi, 4G/5G connections or corporate firewalls that close long-lived connections.
In case of a network problem resulting in disconnection, the recording client will try to reconnect 30 times before giving up.
Each of the 30 attempts to reconnect can timeout after 10 seconds. After each timeout or failed re-connection attempt, the recorder will wait between 0.5 and 5 seconds before making another attempt. Thus, it can take a maximum of 450 seconds ((10s timeout + 5s delay) * 30 attempts = 450 seconds = 7.5 minutes) for the recorder to spend all 30 attempts. This interval can be even higher if there’s anything blocking the JavaScript client side.
If a disconnection happens while recording, the recording process will continue, but a message will be shown to the user. If the connection is re-established, the data recorded while the connection was interrupted will start uploading to the media server while the recording process continues.
Why an established WebSocket connection might disconnect
The most common causes are:
- Switching networks. The device moves from Wi-Fi to mobile data (or back), joins a different Wi-Fi network, or connects to or disconnects from a VPN. Each change gives the device a new IP address, which breaks any open connection.
- Weak or unstable signal. Busy or high-latency Wi-Fi, poor 4G/5G coverage, or dead zones such as elevators and trains can delay data long enough for the connection to time out.
- The device or browser pausing the page. Locking the phone, switching apps, or letting the computer go to sleep can make the browser suspend the page and close its connections.
- The Internet connection going down. ISP outages, a router restart, or a brief power cut.
- Network equipment closing long-lived connections. Some proxies, firewalls and corporate networks drop connections that stay open for a long time, or start blocking WebSocket traffic after a policy change.
Connection Error messages
In case of a connection problem, the recording client will show one of the following messages:
Not Connected. Reconnecting in a few seconds
This message is shown when the first connection attempt ever to the media server fails.

Not Connected (wss). Attempting to connect in a few seconds…
This message is shown when a subsequent (re)connection attempt to the media server fails.

Connection timeout. Reconnecting in a few seconds…
This message is shown when a connection attempt times out after 10 seconds.

Not Connected. Reconnecting…
This message is shown when Pipe attempts to connect or reconnect. If the connection attempt fails right away, this message is shown for a fraction of a second. If the connection attempt fails through a time out, this message will be shown for the duration of the timeout (10 seconds).

Reconnected
Shown for a moment after a successful reconnect attempt.

Connection failures
Two different messages provide more specific details about connection failures:
Could not establish a secure websocket connection to the media server.
Displayed when all 31 attempts to connect to the region servers are unsuccessful. Clicking the message reloads the recording client, starting the connection cycle from the beginning.

The secure websocket connection to the media server has been lost and a new connection could not be re-established.
Displayed when, after a connection is established, the connection is lost and all 30 attempts to re-connect are unsuccessful. A Click here to retry button is shown alongside the message. Clicking it reloads the recording client and establishes a new connection. If a recording was in progress when the connection was lost, the data sent up to that point is preserved.

Causes:
- The user can’t establish a connection to our media servers (restrictive networks or proxies, very slow or high latency connections, etc.)
- The user looses Internet connection (ISP problems, power failure, tripping over the router, etc.)
- Very rare but theoretically possible: our media server is down for some reason
Connection Error
Displayed when the initial connection attempt fails immediately due to a specific error, such as a server-side rejection or a transport-level failure, without going through the full reconnection cycle. A Click here to retry button is shown alongside the message. Clicking it reloads the recording client.
Recovering Unsaved Recordings
For recordings made with our recording client by capturing from the camera or screen, the ingestion media servers have a recording recovery mechanism in place that recovers the recording if, while streaming the recording (so while recording or uploading it), the connection is interrupted, and a new connection can’t be established. This mechanism is triggered only if the autosave option is enabled in the embed code (by default, it is enabled).
Recording Client
Recordings made by capturing from the camera or screen and streaming back to our ingestion servers
In case of a network problem resulting in disconnection, the recording client will try to reconnect 30 times before giving up. As shown above, this process can take up to 450 seconds and even more. That’s why the ingestion media server, under normal circumstances, will wait 15 minutes - from the moment the disconnection is detected server-side - before attempting to recover an unsaved recording. It needs to give the user all the time it needs to cycle through his 30 reconnect attempts.
Recordings made by uploading an existing recording
The recovery mechanism does not function with existing recordings uploaded through the recording client.
Legacy Mobile Recorder
Recordings made by uploading an existing recording
The recovery mechanism does not function with new or existing recordings uploaded through the legacy mobile recorder.
Using webhooks instead of the JS Events API
We recommend relying on Webhooks for integrating the Pipe recording client instead of relying on the JavaScript APIs because webhooks will trigger for recovered recordings.
When a disconnection is the result of the user navigating away, closing the tab, browser crash, or the window/tab being accidentally closed, the JS API events will not trigger. As a result, your JS functions will not trigger and any POST or GET requests (made within your JS) back to your server (to save the data) will never trigger. If the recording is recovered, webhooks will be triggered.
When the disconnection results from a network connection problem like a high latency connection, the JS will execute on the client, but any POST or GET requests might fail. If the recording is recovered, webhooks will be triggered.