๐Ÿš€ EdgeOne Demo Hub

WebSocket Demonstrations with Tencent Cloud EdgeOne

Manual WebSocket Test (wscat)

Use CLI tools to verify the WebSocket endpoint outside the browser.

What is wscat?

wscat is a command-line WebSocket client built on Node.js. It lets you connect to a WebSocket server, send messages manually, and inspect responses in real time.

Install via npm

npm install -g wscat

If npm is not installed, install Node.js first from nodejs.org.

Connect and run

  1. Open a terminal.
  2. Run the following command:
wscat -c wss://ws.ddyy.online/ericyanws

After connected, send JSON messages such as {"type":"get_uptime"}.

Example output

wscat -c wss://ws.ddyy.online/ericyanws Connected (press CTRL+C to quit) < {"type":"connected","message":"Welcome! WebSocket connection established.","connected_at":"2026-05-05 15:42:48 CST","uptime":"0 seconds"} < {"type":"uptime","uptime":"3 seconds","timestamp":"2026-05-05 15:42:51 CST"} < {"type":"uptime","uptime":"13 seconds","timestamp":"2026-05-05 15:43:01 CST"} < {"type":"uptime","uptime":"1 minute 23 seconds","timestamp":"2026-05-05 15:44:11 CST"} > %