The handshake is an HTTP request you cannot see
A WebSocket starts as an HTTP/1.1 request with Upgrade: websocket and a random Sec-WebSocket-Key. The server answers 101 and returns the SHA-1 of that key joined to a constant, which proves it understood the upgrade rather than repeating a cached response. The browser builds that request for you and never shows it, so the useful facts are the ones it does expose: whether the socket opened, how long it took, and which subprotocol the server picked. A server that insists on a subprotocol will fail the whole connection when the client sends none, which looks like a network error and is not one.
The same request carries cookies for the target host. That is why a socket endpoint with no origin check is a cross-site scripting hole rather than a convenience: another site's page can open your socket with the visitor's cookie attached. When a socket works in curl and fails in the browser, the origin check is usually the reason, and the browser console is where it is named.
Frames, close codes and the number in between
Every message is a frame with an opcode. Text and binary are the two a page can send; ping, pong and close are handled by the browser, which is why a protocol-level ping does not appear in this timeline. A close frame carries a code and an optional reason: 1000 is deliberate, 1001 means the page is going away, 1006 is never sent by anyone and instead means the connection died without a close frame, and 1011 is the server saying its own handler threw. When a server drops a socket in the middle of a message, the browser reports 1006 and there is no reason string to read, because there was no frame to carry one.
The gap between two frames is often the interesting number. A heartbeat every 30 seconds is a server keeping a load balancer's idle timer from closing the socket; a heartbeat every 200 milliseconds is a server with nothing to send and a loop that should be a timer. A round trip that climbs slowly is congestion or a proxy; one that jumps to exactly a round number is usually a proxy timeout being swallowed and reopened.
Keepalive is an application decision
The protocol has ping frames, and browsers answer them without waking the page. What a page usually needs instead is an application-level message that says "still here", because the thing that times out is not the socket but a proxy, a load balancer or a mobile network's NAT table. Fifteen to thirty seconds is the usual range; anything faster is traffic the server pays for. This page's keepalive sends the same frame you would send by hand, records each one in the timeline, and stops when the socket closes.
EventSource is a different animal
An EventSource is a plain HTTP GET with Accept: text/event-stream that the server keeps open, writing lines. It reconnects by itself, with a delay the server can set with a retry: line, and it reports each attempt through the open event. It cannot send anything: there is no write side at all, which is why a chat or a cursor needs a WebSocket. The browser applies CORS to it as it would to any fetch, so a server that streams happily to its own page will refuse a request from another origin unless it says otherwise. When an EventSource fails without a message, that is CORS, and the console has the sentence the timeline cannot show.
What this bench does with a failure
Nothing is retried behind your back. A failed connection is written into the timeline as an error row with the time, the address and whatever the browser was willing to say, and the socket is left closed until you press connect again. A close is written with its code and reason, and the state pill returns to closed rather than idle, because those are different states and a tester that hides the difference is a tester that makes you guess. The last 500 frames stay in memory only: reload and the list is empty, which is why the export button exists.
For the request before the upgrade, Pikkola HTTP reads a whole exchange. When the token in that first frame has to be checked, Pikkola JWT decodes it and says what it proves.