Our JavaScript code is added to each of your pages to identify the type of page and, where relevant, send data back to our servers using a WebSocket. This is a secure and efficient method of transmitting data between the browser and server.
Learn more about WebSockets here.
The WebSocket connection is continuously open (pending) to facilitate data transfer.
WebSocket connections
The connection can be thought of as a phone call; once connected both parties can talk back and forth until one of them hangs up.
You can see an example of this by going to your site, opening the Developer Toolbar (typically F12) in your web browser, then navigating to the Network tab (select WS to see just that protocol) as below:
The continuously open (pending) nature of the WebSocket connection can cause it to be flagged as an issue by some monitoring and performance tools. This is because they're not designed to handle the protocol. However, this connection is perfectly normal and should not impact the performance of your site, so can usually be ignored.
In cases where making a WebSocket connection fails, the Script falls back to sending data to our server via HTTPS instead.