

WebSocket frame list showing text and binary messages with direction, timestamps, and payload preview
Entry Points
WebSocket inspection activates automatically when Rockxy detects an HTTP upgrade. The WebSocket tab appears in the response inspector alongside standard HTTP tabs (Headers, Body, Set-Cookie, Auth, Timeline). You can switch back to any HTTP tab to inspect the upgrade handshake headers. No manual configuration is needed.
How It Works
Rockxy detects WebSocket connections by monitoring HTTP upgrade requests. When a client sends anUpgrade: websocket header and the server responds with 101 Switching Protocols, the NIO pipeline inserts a WebSocketFrameHandler that captures every subsequent frame.
The upgrade request itself appears as a normal HTTP transaction in the traffic list. Once upgraded, the connection switches to the WebSocket tab in the inspector, where all frames are displayed in chronological order.
For HTTPS WebSocket connections (wss://), Rockxy decrypts frames using the same MITM approach as regular HTTPS traffic — the HTTPS Interception setup is required.
Frame Inspector
Select a WebSocket connection in the traffic list. The WebSocket tab auto-selects in the response inspector. Each frame displays:

Frame detail view showing a JSON text frame with formatted payload
Message Decoding
Rockxy automatically decodes frame payloads based on the opcode and detected content:- Text frames — displayed as text. If the payload is valid JSON, it is automatically pretty-printed with syntax highlighting and a collapsible tree view.
- Binary frames — displayed as a hex dump with an ASCII sidebar. The byte count and offset are shown for each row.
Connection Lifecycle
A WebSocket connection in Rockxy follows this lifecycle:- Upgrade Request — the initial HTTP request with
Upgrade: websocketappears in the traffic list as a standard HTTP transaction with status101. - Open — the connection is established. The WebSocket tab becomes active in the inspector.
- Frames — text, binary, ping, and pong frames are captured and displayed in real time as they flow through the proxy.
- Close — a close frame (from either side) terminates the connection. The close code and reason are displayed.
Supported Opcodes
Next Steps
GraphQL Detection
Automatic GraphQL-over-HTTP operation detection and inspection
Traffic Capture
Full guide to capturing, filtering, and inspecting network traffic
