Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions txredis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1484,10 +1484,10 @@ def handleCompleteMultiBulkData(self, reply):
"""
if reply[0] == u"message":
channel, message = reply[1:]
self.messageReceived(channel, message)
self.messageReceived(channel, message, channel)
elif reply[0] == u"pmessage":
pattern, channel, message = reply[1:]
self.messageReceived(channel, message)
self.messageReceived(channel, message, pattern)
elif reply[0] == u"subscribe":
channel, numSubscribed = reply[1:]
self.channelSubscribed(channel, numSubscribed)
Expand All @@ -1503,7 +1503,7 @@ def handleCompleteMultiBulkData(self, reply):
else:
RedisBase.handleCompleteMultiBulkData(self, reply)

def messageReceived(self, channel, message):
def messageReceived(self, channel, message, pattern):
"""
Called when this connection is subscribed to a channel that
has received a message published on it.
Expand Down