Skip to content

Commit

Permalink
readme: how to correctly auth to server, what error looks like if don…
Browse files Browse the repository at this point in the history
…e wrong
  • Loading branch information
DTrejo committed Mar 5, 2012
1 parent 234ae6b commit cd5db44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit cd5db44

Please sign in to comment.