中文版 English

WS Terminal

v2.4WebSocketClient

⚡ Online WebSocket test tool: enter server address, click connect and start messaging. Supports custom headers, templates, real-time stats & log filtering. No download, fast debugging.

Connection Settings

Status:DISCONNECTED
0
0
Uptime:
—ms
WebSocket URL
wss://
History
Protocol:

Enter WebSocket server address, choose ws/wss, add custom headers if needed. After successful connection, status indicator turns green.

Custom Headers

Message Statistics

0
Total
0
Sent
0
Received
0 B
Traffic
Latency ms

Real‑time stats of sent/received messages, total bytes and current latency. Latency is calculated via periodic heartbeat.

Preset Endpoints

Echo Server
echo.websocket.org
Postman Echo
ws.postman-echo.com/raw
Local Dev
localhost:8080/ws
Local Socket.IO
localhost:3000/socket

Click a preset to fill the URL instantly, connect to public test servers or local dev addresses.

Message Templates

Ping
{"type":"ping",...}
Hello
{"type":"hello",...}
Subscribe
{"action":"subscribe",...}
Auth
{"type":"auth","token":...}
Heartbeat
{"cmd":"heartbeat",...}

Click a template to insert common JSON messages. Edit before sending.

Message Log

Messages appear here after connection

All sent/received messages are displayed in real time. Filter by type, search by keyword, auto‑scroll and export supported.

Send Message

Ctrl+Enter to send

Supports Text, JSON, Hex. JSON can be formatted/minified. Shortcut: Ctrl+Enter to send.

Professional WebSocket Test Tool Features

Multi‑protocol (WS/WSS)

Switch between ws and wss with one click. Auto‑complete URL prefixes, compatible with encrypted and plain connections.

Auto‑select protocol based on server

Custom Headers

Add any HTTP headers for authentication, tokens, or custom parameters. Sent during handshake.

Click "+ Add" to enter header key/value

Real‑time Stats

Monitor sent/received counts, total traffic, and current latency. Updated every second.

Latency calculated via heartbeat pings

Presets & Templates

Built‑in public test servers and message templates (Ping, Hello, Subscribe, etc.) for instant testing.

Click a card to auto‑fill URL or message

Powerful Logging

Real‑time log with type filters, keyword search, auto‑scroll, and export to text file.

Keeps last 500 messages

Multi‑format Editor

Text, JSON, Hex. JSON format/minify buttons, Ctrl+Enter shortcut for fast sending.

Input field adapts to selected format

Frequently Asked Questions (FAQ)

What is WebSocket?

WebSocket is a protocol providing full‑duplex communication over a single TCP connection, allowing servers to push data to clients. This tool helps test if your WebSocket service works correctly.

How do I test a WebSocket connection?

Enter the WebSocket server URL (e.g. wss://echo.websocket.org), click 'Connect'. Once connected, type a message in the input area and click 'Send'. Received messages appear in the log.

Why does the connection fail?

Possible reasons: wrong server address, server doesn't support WSS (try WS), firewall blocking, server down or CORS restrictions. Check the URL and ensure the server allows WebSocket connections.

How do I add custom headers?

Under 'Connection Settings', click '+ Add' to input header name and value. These headers are sent during the WebSocket handshake, useful for authentication or custom parameters.

What message formats are supported?

Text, JSON, and Hex. Select the format, enter your content, and it will be converted automatically. JSON mode includes format and minify buttons for easy editing.

Can I save the log?

Yes. Click the 'Export' button in the log area to download the current log as a text file.

How is latency calculated?

After connection, the tool sends a built‑in ping message every 10 seconds and measures the time until the pong is received, displaying the current latency.

Network Debugging Toolkit

More utilities to assist network development and testing

Online Ping Test

Check latency and connectivity, supports IPv4/IPv6

DNS Lookup

Resolve A, MX, TXT records and more

Port Scanner

Check open ports on a target IP, fast service diagnosis

HTTP Headers

Analyze response headers and security settings