WebSocket Tester: Connect & Send Messages Online
A WebSocket tester opens a live connection to a WebSocket server and lets you send messages and watch everything the server pushes back in real time. Enter a wss:// URL, click Connect, and every frame sent and received appears in a timestamped log, including the close code when the connection ends. The connection runs directly from your browser, so what you see is exactly what your own frontend code would see.
No messages yet. Connect to a WebSocket server and sent/received frames will appear here.
How it works
- 1
Enter the WebSocket URL (wss://example.com/socket) and click Connect.
- 2
Type a message (plain text or JSON) and send it: sent and received frames appear in the live log.
- 3
Click Disconnect when done: the close code and reason are shown so you can debug handshakes.
Frequently asked questions
How do I test a WebSocket connection online?
Paste the server URL starting with wss:// into the field above and click Connect. Once the status shows Connected, type messages and send them; every frame the server pushes appears instantly in the log with a timestamp.
Why does my ws:// URL fail to connect?
This page is served over HTTPS, and browsers block insecure ws:// connections from secure pages (mixed content). Use the wss:// version of your endpoint. If your server only speaks ws://, test it from a local tool or put TLS in front of it.
What do WebSocket close codes mean?
When a connection closes, the server (or browser) sends a numeric close code: 1000 is a normal closure, 1006 means the connection dropped without a close frame (often a network or TLS problem), 1008 is a policy violation, and 1011 is a server error. The tester shows the code and reason for every disconnect.
Can I send JSON messages?
Yes. WebSocket frames are just text (or binary), so paste any JSON payload and send it. Received messages that parse as JSON can be pretty-printed in the log for readability.
Does the connection go through your server?
No. Unlike REST testing, browsers allow cross-origin WebSocket connections, so the socket is opened directly between your browser and the target server. Nothing you send or receive passes through this site.
Related tools
Test REST APIs online: send GET, POST, PUT, PATCH and DELETE requests with custom headers, auth, and JSON bodies. See status, timing, and formatted responses. Free, no signup.
Test GraphQL APIs online: run queries and mutations with variables and headers, explore the schema via introspection, and see formatted JSON responses. Free, no signup.
Send SOAP requests online: endpoint, SOAPAction, custom headers, timeout. Response status, timing, headers and body inline. History & environments. Free.
Test XML online: well-formedness testing, structure stats, XPath-style element lookup, and live endpoint testing for XML APIs. Free, no signup.
Parse and analyze WSDL files instantly. Extract services, ports, operations, generate SOAP requests and client code, and test operations live. Free, no signup.