CometVPN City Switch Test: What Happened to an Open WebSocket?

Fresh HTTPS requests change routes at a city switch while an open WebSocket continues along its existing path

In the completed Manhattan-to-Chicago switch, new HTTPS requests moved to the new route. The WebSocket that was already open continued to use the original route. It delivered 117 recorded heartbeat acknowledgments without a reconnect before the trial ended.

A public-IP check opens an exchange whose egress can differ from a connection established earlier. Long-running collaboration, live updates and browser consoles often use an open WebSocket. This experiment tracked the two surfaces in the same browser, against the same owned staging origin, during a switch in the CometVPN extension.

Completed switch
1
Manhattan to Chicago
First new HTTPS route
56.65 s
Elapsed from the collector start
Original WebSocket
117
Heartbeat acknowledgments on its original route

One completed Manhattan-to-Chicago switch, one no-switch control and separate partial attempts. Both measured surfaces used the same owned origin.

Results at a glance

Sequence of recorded events in the completed switch

  • 1.81 s WebSocket opens on the original route
  • 50.00 s Chicago switch requested
  • 52.60–56.65 s Last old HTTPS observation to first new one
  • 120.36 s Last heartbeat on the original socket
Manhattan-to-Chicago switch, using server timestamps and action markers
अवलोकनElapsed timeRecorded outcome
Original WebSocket opened1.81 sOriginal route
Switch requested50.00 sIndependent operator marker
Last HTTPS observation on original route52.60 sOriginal route still observed
Chicago connection confirmed56.30 sExtension showed connected
First HTTPS observation on new route56.65 sNew route
Last recorded WebSocket heartbeat120.36 sOriginal route, same socket

Measurement design

Pairing
Fresh HTTPS echoes and sequential heartbeat acknowledgments on one pre-opened WebSocket
Observable address
The collector labels the peer of each HTTP request or WebSocket upgrade
Independent timing
Extension switch request and connected confirmation marked outside the browser probe loop
तुलना
A Manhattan trial with a midpoint marker and no extension switch

What moved during the switch

The automation started the trial with Manhattan connected. It opened a WebSocket and requested HTTPS echo responses from the collector throughout the roughly two-minute window. At 50 seconds, it requested Chicago through the actual extension popup. The browser reported the new connection at 56.30 seconds, and the first new HTTPS route was observed shortly afterward, at 56.65 seconds.

The last original-route HTTPS observation arrived at 52.60 seconds. That gives an observation bracket for the HTTP change. Requests were sampled, and responses can arrive after the network action that prompted them. The first new response time therefore gives a useful measured upper bound for seeing the new route in this setup, with uncertainty between the two observations.

The HTTPS echo endpoint received 28 observations on the original route and 40 on the new route before the server recorded the trial end. The browser logged one failed probe and a successful probe that finished after its ending marker. The server-side request count and the browser-side outcome count describe different parts of the sampling process. Treating those counts as identical would hide the in-flight request at the boundary.

How we kept the WebSocket evidence separate

The server recorded the route label when the WebSocket upgrade opened the connection. Its echo loop then replied to numbered messages on that same socket. The 117 recorded acknowledgments all belonged to the original connection. The server logged one socket open and no browser close before the end marker. A later connection would have received its own opening record and label.

A WebSocket handshake starts an application channel carried by an existing network connection. During this experiment, Chrome continued sending and receiving frames on that connection after the extension changed the route for fresh HTTPS exchanges. The route label is an observation from our HTTPS and WebSocket ingress. It describes the public address seen by the collector, without any access to the provider’s infrastructure.

We also ran a two-minute Manhattan control with a midpoint marker and no switch. In that control, 115 successful HTTPS probes and 117 WebSocket heartbeats were recorded before the trial ended. Both surfaces stayed on the Manhattan reference. The control verifies that the fixture could observe simultaneous HTTPS and socket traffic in the ordinary connected state.

Browser, timing and failed attempts

The test used a dedicated Chromium 151 profile, CometVPN extension 1.3.0, and an owned HTTPS origin with a WebSocket upgrade route. The collector kept a keyed label for the ingress IPv4 instead of writing raw IPs. We had already recorded distinct direct and VPN references. HTTPS requests used cache-bypassing fetches, and the socket sent application-level heartbeat messages.

The final switch markers were written over the workstation’s separate control path. This was important because earlier switch attempts timed out or interrupted the browser’s ability to send markers to the collector. In the completed trial we recorded both the request to change cities and the extension’s connection confirmation. Those two events let a reader distinguish the browser action from the observed network response.

Two earlier timed attempts ended without a successful measured transition or a normal ending record. An additional setup retry could not connect to the selected starting city. We kept the earlier timed logs and scored the single completed switch separately. The two-minute no-switch control and the uncompleted attempts contribute context, while the Chicago result describes one successful transition.

What an open connection means for the result

Changing the location shown in a browser extension can affect newly established traffic and an existing connection at different times. A browser tool that reports only the current HTTP address could correctly show the new location while a live application still has an open session on the previous route. For a reproduction, keep a socket open and record a second, fresh HTTPS observation in parallel before and after a marked switch.

The successful switch retained the original VPN route on the socket. This trial does not establish a route pattern for every server, VPN change, browser version or transport. It does not show whether an already open socket would persist during a disconnect, a browser restart or a tunnel interruption. It also does not independently establish the physical city of either IP.

How to read the recorded evidence

Use the completed switch ID when filtering observations. The opening record supplies the socket’s route label. Numbered heartbeats describe that connection until the end marker. The HTTPS entries can be grouped independently by their route labels and timestamps.

The recorder and collector use different viewpoints. The screenshot shows the browser-side probe count and the final heartbeat sequence. On the server, a request can be received before the cutoff even if its browser response event is recorded afterward. Keep the two counts tied to their respective clocks.

Completed switch and no-switch control, before each recorded end marker
रनHTTPS observationsWebSocket heartbeat acknowledgmentsSocket route
Manhattan → Chicago28 original + 40 new at the server117Original at upgrade
Manhattan control115 successful browser probes117Manhattan at upgrade

Research lab screenshots

Research lab recorder at the end of the Manhattan-to-Chicago switch, showing successful HTTPS responses and heartbeats through sequence 117
Original CometVPN research lab capture from the completed switch. The recorder shows heartbeat 117 and the final HTTPS events. Route labels are opaque. The archived upgrade and echo records establish which routes they used.
Coolify shows the cometvpn-research-lab application marked Running
Cropped Coolify dashboard captured on November 27, 2026. It documents the collector’s deployment status on that date. The request records establish the earlier experiment’s outcomes.

अक्सर पूछे जाने वाले प्रश्न

Downloads, sources and citation

Suggested citation. FreePolicyTools. CometVPN City Switch Test: What Happened to an Open WebSocket?. Original Research, November 26, 2026. Permanent article link.

FreePolicyTools may earn a commission if you purchase through this link.

Explore CometVPN plans

Related research

मशीनी अनुवाद