Probe type · Pro+
WebSocket probe
The only check that proves your WebSocket endpoint actually upgrades, negotiates the right subprotocol, and stays responsive after the 101.
What the WebSocket check does
A WebSocket probe walks through a real connection: DNS, TCP, TLS, the HTTP Upgrade, subprotocol negotiation and, optionally, a message round trip. An HTTP probe stops at a status code, and a TCP probe never tries the Upgrade. Neither catches the ways WebSocket apps fail in production.
- Level 1: connect. Send the Upgrade request and expect
101 Switching Protocols, the handshake RFC 6455 defines. - Level 2: subprotocol. Offer subprotocols, such as
graphql-transport-ws, and check the server picks the one you expect. That catches a server that still upgrades but dropped your client's protocol. - Level 3: round trip. After the 101, send a small text frame (
pingby default) and wait for an answer. By default the reply must echo it. For servers that send a welcome frame instead, accept any non-control frame.
Timings and thresholds
Each run records two numbers: the handshake (TCP, TLS and Upgrade) and the post-101 round trip. By default a handshake over 1,000 ms or a round trip over 200 ms turns the probe amber. A failed Upgrade, a wrong subprotocol or no reply in time is Down.
HTTP/1.1 or HTTP/2
The Upgrade runs over HTTP/1.1 by default. If your edge carries WebSockets over HTTP/2 with the extended CONNECT method from RFC 8441, switch the probe to HTTP/2. One authentication header, such as a bearer token, is encrypted at rest. Other headers go in a separate, plain JSON field.
Real-time endpoints to watch
- GraphQL subscriptions. Assert the subprotocol and a round trip inside your budget.
- Chat and collaboration apps, where the socket is the product. The round trip catches a wedged event loop that still accepts connections.
- Phoenix, ActionCable and SignalR. These send a frame on connect; turn off Expect echo.
- Price and IoT feeds over WSS, including MQTT over WebSocket.
- Authenticated sockets, with the token in the encrypted header.
The browser side of the protocol is documented on MDN. Long-polling and Server-Sent Events are plain HTTP, so an HTTP probe covers them.
WebSocket probe settings
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
Target URL |
string (ws:// or wss://) |
Required | — | Full WebSocket URL. wss:// preferred for production. Internal hostnames rejected at save time. |
HTTP version |
Http11 | Http2 |
Optional | Http11 | Transport version. HTTP/2 (RFC 8441) requires server SETTINGS_ENABLE_CONNECT_PROTOCOL; falls back to HTTP/1.1. |
Offered subprotocols |
string (comma-separated) |
Optional | — | Subprotocols the client offers (e.g. "graphql-ws, graphql-transport-ws"). |
Expected subprotocol |
string |
Optional | — | Hard assertion — server's chosen subprotocol must equal this value or the probe flips Down. |
Origin header |
string |
Optional | — | Value of the Origin request header. Required by CSRF-aware servers. |
Custom headers |
JSON object |
Optional | — | Map of header → value sent on the Upgrade request. Non-secret only — use Auth header for credentials. |
Auth header |
string (encrypted at rest) |
Optional | — | Single auth-style line (Bearer / X-API-Key). AES-GCM encrypted; sent as Authorization. |
Send RTT probe |
boolean |
Optional | true | When on, after the 101 the probe sends a small text frame and waits for a response (Level 3). |
RTT payload |
string |
Optional | ping | Text payload for the RTT probe. Capped at 64 KB. |
Expect echo |
boolean |
Optional | true | When on, server response must equal what we sent. When off, any non-control frame counts (welcome frame servers). |
Handshake Degraded (ms) |
integer |
Optional | 1000 | Connect + TLS + Upgrade budget above which the probe reports Degraded. |
RTT Degraded (ms) |
integer |
Optional | 200 | Post-101 send/receive latency above which the probe reports Degraded. |
RTT timeout (ms) |
integer |
Optional | 5000 | Hard ceiling on the RTT-probe response. |
Ignore server cert validation |
boolean |
Optional | false | Accept self-signed or untrusted server certs. |
Plans: Pro+ · Help: WebSocket probe