工具星球ToolPlanet

WebSocket 在线测试WebSocket Tester

支持 WS / WSS 测试、子协议和收发日志。WSS 直连,HTTPS 页面连接 WS 时可确认使用限流中转。Test WS / WSS servers, send text or JSON and inspect live messages. Supports subprotocols, binary HEX previews, log filters and exports. WSS connects directly; WS on HTTPS requires consent to a rate-limited relay without message storage.

未连接发送 0 · 0 B接收 0 · 0 B协商子协议 —

发送消息

Ctrl / ⌘ + Enter 发送。支持空文本;单条最多 256 KiB。不会自动重连或定时发送。

连接限制与隐私

WSS 由浏览器直连;HTTPS 页面测试 WS 时需确认后通过本站中转。只连接有权测试的服务,不要发送密码或私密数据。

服务端需允许本站 Origin;中转不转发登录 Cookie 或 Authorization,不能手动发送协议层 Ping/Pong。Socket.IO 不是原生 WebSocket 协议。

地址与消息不会持久保存。页面离开会断开连接;日志导出可能含敏感内容,请自行妥善保管。

消息日志

填写服务地址并连接,收发消息将在这里显示。

最多保留最近 200 条日志,长消息仅预览。单条接收上限 1 MiB;密集推送会自动断开以保护浏览器。

WebSocket 在线测试使用指南WebSocket Tester: guide

在线 WebSocket 测试客户端,支持 WS / WSS 连接、子协议、文本与 JSON 消息发送、二进制 HEX 预览、连接状态、消息日志筛选及导出。WSS 浏览器直连;HTTPS 页面连接 WS 时需确认使用限流中转,消息不保存。Test WS / WSS servers, send text or JSON and inspect live messages. Supports subprotocols, binary HEX previews, log filters and exports. WSS connects directly; WS on HTTPS requires consent to a rate-limited relay without message storage.

  1. 填写有权测试的 WebSocket 服务地址和可选子协议,点击连接。WSS 直接连接;WS 请先确认服务器中转提示,中转仅支持公网 IPv4 地址。Enter an authorized server address and optional subprotocols, then connect. WSS connects directly; for WS, confirm the relay notice. Only public IPv4 targets are supported by the relay.
  2. 输入文本或 JSON,点击发送或按 Ctrl / Command + Enter,查看收发日志;测试后断开连接。Send text using the button or Ctrl / Command + Enter, inspect logs and disconnect when done.

为什么 WebSocket 连接失败,能自定义请求头吗?Why does a connection fail, and can I set custom headers?

请检查服务是否启动、WSS 证书、Origin 白名单和鉴权要求。浏览器不能任意设置 Authorization 等握手请求头,也不能手动发送协议层 Ping/Pong。Socket.IO 不是原生 WebSocket。消息会发送到填写的目标服务,勿向陌生服务发送敏感信息。Check the service, TLS certificate, Origin allowlist and authentication requirements. Browsers cannot set arbitrary handshake headers such as Authorization or manually send protocol-level Ping/Pong frames. Socket.IO is not plain WebSocket. Messages go to the server you enter; do not send secrets to unknown services.

免费使用,无需注册。浏览器直连目标服务;工具星球不转发或保存连接地址及消息,访问统计不包含工具输入。Free, no registration. Your browser connects to the target server directly. ToolPlanet does not relay or store addresses or messages, and tool input is excluded from analytics.