Skip to content

Commit 592f240

Browse files
committed
Fix documentation for pmessage event
Closes #33
1 parent d00794d commit 592f240

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ $client->on('error', function (Exception $e) {
157157
$client->on('message', function ($channel, $payload) {
158158
// pubsub message received on given $channel
159159
});
160-
$client->on('pmessage', function ($pattern, $payload) {
160+
$client->on('pmessage', function ($pattern, $channel, $payload) {
161161
// pubsub message received matching given $pattern
162162
});
163163
$client->on('subscribe', function ($channel, $total) {

0 commit comments

Comments
 (0)