Connectivity toolkit

WebSocket Test

Open a secure WebSocket, exchange messages, and inspect the conversation from your browser. Test your own endpoint or try a public echo service.

Direct browser connectionText · JSON · BinaryNo account or saved sessions

1. Connect to an endpoint

Not connected

Public WSS endpoints only. A hostname without a scheme becomes wss://. Credentials in the URL and fragments are rejected.

Offer up to 8 unique tokens. A subprotocol must match your server; this client does not implement its application protocol.

The example only fills the form. WebSocket.org’s public echo service receives anything you send; use non-sensitive test data. Availability and fair-use limits are controlled by its operator.

Ready. Enter an endpoint, give consent, then select Connect.
Sent payload0 B0 messages
Received payload0 B0 messages
Browser send queue0 B256 KiB ceiling
Application echo RTT—No matched probe

2. Send a message

Text is sent exactly as entered. Empty text messages are allowed.

Ctrl/⌘ + Enter sends. Maximum 64 KiB per message. “Sent” means accepted by the browser, not acknowledged by the server.

Sends a unique text message. RTT appears only when that exact message returns within 10 seconds. Use on servers that echo text; it is not a WebSocket Ping frame.

Connection details

Endpoint
—
Subprotocol
—
Extensions
—
Open time
—
Last close
—

Endpoint paths, queries, and any negotiated subprotocol are hidden in shared reports.

Use 1000 (normal) or an application code from 3000–4999. Reason limit: 123 UTF-8 bytes.

A connection automatically closes after 5 minutes, 1 MiB of combined payload, or 1,000 messages. No automatic reconnects or repeated sends.

3. Inspect events

0 retained events

Your connection events and messages will appear here.

Newest 200 events; previews limited to 2,048 characters (binary shown as hex). Times are UTC. Payload previews may contain sensitive data.

Reports include all retained events, regardless of filter. They omit message contents, close reasons, subprotocol values, and endpoint paths and queries. No session is saved in this browser.

Browser limits and troubleshooting
  • The connection goes directly from your browser to the endpoint. This page cannot add custom Authorization or other HTTP headers, override Origin, set cookies, bypass TLS certificate errors, or show the HTTP handshake status. The browser may send eligible cookies according to its own policies; this tool cannot control or read them.
  • The server must accept this page’s Origin. Cross-origin WebSockets do not use the usual HTTP CORS preflight. If a connection fails, check the server’s Origin policy, authentication requirements, certificate, and browser developer tools.
  • Only WSS is supported here. Local hostnames and private/reserved IP literals are rejected. Browser JavaScript cannot inspect DNS resolution, so these checks cannot guarantee that a hostname resolves to a public address.
  • The browser handles protocol Ping/Pong internally and does not expose those frames. The echo measurement is a single matched application message round trip, including server processing and browser scheduling; it is not a pure network latency test.
  • Raw WebSocket is different from Socket.IO. GraphQL, STOMP, MQTT, and other application protocols require correctly formatted messages and may need an offered subprotocol. This tool does not generate those conversations.
  • Close code 1000 normally indicates a normal closure; 1006 means no usable close frame was received and does not identify the root cause; 1008 indicates a policy violation; 1009 indicates an oversized message; 1011 indicates a server error. An empty reason is valid.
  • Limits: 2,048 URL characters; path and query each up to 1,024; 8 subprotocols, 128 characters each; 15-second connection deadline; one send every 100 ms; 256 KiB send queue; 64 KiB message limit; 1 MiB combined session payload; 1,000 messages; 5-minute session. Oversized incoming messages close the session and are not previewed. Browsers receive a whole message before this page can check its size.
  • Clearing the log keeps connection counters and limits. Reset closes the current socket and clears the form, log, and counters. An unconfirmed close is reported after 5 seconds; the browser controls the underlying connection shutdown.