Skip to content

Commit

Permalink
Add authentication example. Closes #70.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiorix committed Sep 24, 2014
1 parent 39c5874 commit 38f1947
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def connectionMade(self):
print "use the redis client to send messages:"
print "$ redis-cli publish zz test"
print "$ redis-cli publish foo.bar hello world"

#self.auth("foobared")

self.subscribe("zz")
self.psubscribe("foo.*")
# reactor.callLater(10, self.unsubscribe, "zz")
Expand Down

0 comments on commit 38f1947

Please sign in to comment.