From cd5db44f665ff50d2fcd7346de2f561fffa80ef1 Mon Sep 17 00:00:00 2001 From: David Trejo Date: Mon, 5 Mar 2012 17:31:47 -0500 Subject: [PATCH] readme: how to correctly auth to server, what error looks like if done wrong --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 40d60a81c9..c0d23bd915 100644 --- a/README.md +++ b/README.md @@ -213,6 +213,9 @@ first command after connecting. This can be tricky to coordinate with reconnect etc. To make this easier, `client.auth()` stashes `password` and will send it after each connection, including reconnections. `callback` is invoked only once, after the response to the very first `AUTH` command sent. +NOTE: Your call to `client.auth()` should not be inside the ready handler. If +you are doing this wrong, `client` will emit an error that looks +something like this `Error: Ready check failed: ERR operation not permitted`. ## client.end()