Echo DB

PING

Tests the connection to Echo DB and returns a response.

Syntax

PING [message]

Description

The PING command is used to test if the connection to Echo DB is working. If called without arguments, it returns PONG. If called with a message, it echoes back the message.

Arguments

  • message (optional): A message to echo back. If provided, Echo DB will return this message instead of PONG.

Return Value

Returns a Simple String:

  • PONG if no message is provided
  • The provided message if a message is given

Examples

Basic PING

PING

Response:

PONG

PING with Message

PING "Hello Echo DB"

Response:

Hello Echo DB

Use Cases

  • Connection Testing: Verify that the connection to Echo DB is working
  • Health Checks: Use in monitoring scripts to check if Echo DB is responsive
  • Debugging: Test network connectivity and server responsiveness
  • ECHO - Echo a string