update docs/client.md, explain the protocol