WebSocket Tester

Connect to a ws:// or wss:// server from your browser, send text or JSON messages and watch every reply in a timed log you can copy.

Processed on your device. Files are not uploaded

How to test a WebSocket server

  1. Enter the address

    Use a ws:// or wss:// address, and subprotocols if your server needs them.

  2. Connect and send

    Type a message and press Send, or Ctrl+Enter.

  3. Watch the log

    Every message sent and received is listed with its time. Copy the log to share it.

When to use WebSocket Tester

You are building a WebSocket server and want to see whether it accepts a connection and answers messages correctly.

A chat, live feed or GraphQL subscription is not updating and you need to watch the raw messages the server sends.

Tips for a better WebSocket Tester result

Send JSON messages exactly as your client would, including the type field many protocols expect, and keep the log open while you test.

If a server needs a subprotocol such as graphql-transport-ws, enter it before connecting or the server may close the connection at once.

WebSocket Tester: limits and what to check

Servers that check the Origin header may refuse this page, even though the same address works from your own app.

Plain ws:// addresses are blocked on https pages except for localhost, so test remote servers over wss://.

About WebSocket Tester

Check a WebSocket endpoint without writing a client. The browser connects straight to the server, so you see exactly what a web app would see, including close codes and binary frames shown as hex. JSON messages are formatted for reading.

FAQs

Why does the connection fail with no reason?

Browsers hide the cause of WebSocket errors for security. Common causes are a wrong address, a server that only accepts its own website, or ws:// blocked on an https page.

How do I send a token?

Browsers cannot set headers on a WebSocket. Put the token in the address (?token=...), a subprotocol or the first message, as your server expects.

What does close code 1006 mean?

The connection dropped without a proper close, usually a network problem, a proxy timeout or the server crashing.

Related tools