Skip to content

Commit 1958065

Browse files
bysiberpetyaslavova
andcommitted
Add missing shard channel message types to async PubSub (#3966)
Co-authored-by: petyaslavova <petya.slavova@redis.com>
1 parent abc519d commit 1958065

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

redis/asyncio/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,8 @@ class PubSub:
872872
will be returned and it's safe to start listening again.
873873
"""
874874

875-
PUBLISH_MESSAGE_TYPES = ("message", "pmessage")
876-
UNSUBSCRIBE_MESSAGE_TYPES = ("unsubscribe", "punsubscribe")
875+
PUBLISH_MESSAGE_TYPES = ("message", "pmessage", "smessage")
876+
UNSUBSCRIBE_MESSAGE_TYPES = ("unsubscribe", "punsubscribe", "sunsubscribe")
877877
HEALTH_CHECK_MESSAGE = "redis-py-health-check"
878878

879879
def __init__(

0 commit comments

Comments
 (0)