Skip to content
Young Yu edited this page May 26, 2024 · 6 revisions

Sends a value to the server, then the server sends the exact same value back.

CLI

Usage

echo <value>
  • value: The value that the server should echo back. Required.

Example

In the example below we simply echo hello world!.

> echo "hello world!"
hello world!

TCP

For how to send commands directly through the TCP connection, see the protocol section.

Format

ECHO <value>
  • value: The value that the server should echo back. Required.

Example

ECHO hello would be encoded as:

4\r\nECHO5\r\nhello
Clone this wiki locally