HELLO
Selects RESP2 or RESP3 and reports connection and server information.
Connections · Example verified
Syntax covered here
HELLO 2 | HELLO 3The case switches to RESP3, successfully issues PING, then switches back to RESP2; clients must decode the negotiated reply format.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> HELLO 3
{"server":"lavik","version":"0.1.0-beta.1","proto":3,"id":64,"mode":"standalone","role":"master","modules":[]}
# connection: default
> PING
"PONG"
# connection: default
> HELLO 2
["server","lavik","version","0.1.0-beta.1","proto",2,"id",64,"mode","standalone","role","master","modules",[]]