From e6ffade716eed91101b642140b7d8b74f6fdf9b2 Mon Sep 17 00:00:00 2001 From: Jude Pereira Date: Tue, 14 Jan 2020 13:07:01 +0100 Subject: [PATCH] Update code for pub/sub to listen on the stateful connection object. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b09171649..5e6bf25472 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Pub/Sub ```java RedisPubSubCommands connection = client.connectPubSub().sync(); -connection.addListener(new RedisPubSubListener() { ... }) +connection.getStatefulConnection().addListener(new RedisPubSubListener() { ... }) connection.subscribe("channel") ```