WebSocket Tester.
Connect to a ws:// or wss:// endpoint from your browser, send messages and inspect every frame.
Runs in your browser Your browser connects to the endpoint directly; nothing passes through our server.About WebSocket Tester
WebSocket Tester is a small browser client for checking a WebSocket endpoint without writing code or installing a desktop app. Enter a ws:// or wss:// URL, optionally the subprotocols your server expects, and connect. The log shows the handshake result, every message you send and every message you receive with a timestamp, its size in bytes and, for JSON, a pretty-printed body that is easy to read. When the connection closes you see the close code and reason, which is often the fastest way to understand a failure: 1000 is a normal close, 1006 means the connection dropped without a close frame, typically because of a proxy, a TLS problem or a server crash, and 1008 or 4xxx codes are application-specific rejections such as a missing token. The browser connects directly to the server you enter; this site does not proxy, record or see the traffic. That also means the usual browser rules apply. An https page cannot open an unencrypted ws:// connection except to localhost, the browser sends your page's Origin header, which some servers check, and custom headers such as Authorization cannot be set by browser WebSocket clients, so tokens usually go in the query string or in the first message. A common mistake is pasting an http:// URL; the tool tells you to switch to ws:// or wss://. Binary frames are shown with their size and a hex preview.
How to Use
- Enter the ws:// or wss:// URL and any subprotocols, then press Connect.
- Type a message, optionally as JSON, and press Send; incoming frames appear in the log.
- Read the close code and reason when the connection ends, then reconnect or adjust the URL.
Frequently Asked Questions
Does the traffic go through your server?
No. Your browser opens the WebSocket directly to the URL you enter. Nothing is proxied or logged by this site.
How do I send an auth token?
Browsers do not allow custom headers on WebSocket connections. Put the token in the URL query string, use a cookie set by the same site, pass it as a subprotocol if your server supports that, or send it in the first message.
What does close code 1006 mean?
The connection closed without a proper close frame, so the browser does not know why. Check TLS certificates, proxies and load balancer timeouts, and the server logs.
Why can't I connect to ws:// from this page?
This page is served over https, and browsers block unencrypted ws:// connections from secure pages, except to localhost. Use wss://.
Related Tools
Open a text/event-stream from your browser with custom headers and watch events, ids and retries arrive.
Send GraphQL queries and mutations from your browser, with variables, headers and a schema explorer.
Build HTTP requests and generate code in cURL, PHP, JS, and Python.
See the response headers, status code and redirects of any URL.
Simulate a browser's CORS preflight and request from a given origin and see why it passes or fails.
Look up A, AAAA, CNAME, MX, NS, TXT, SOA, CAA and SRV records.