Skip to content

Commit

Permalink
- getPayload removed, read public property from msg directly instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
devbastic authored and nekufa committed May 23, 2024
1 parent c9ffd0b commit c8e4957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ $client->publish('test_subject', 'world');
// optional message fetch
// if there are no updates null will be returned
$message1 = $queue->fetch();
echo $message1->getPayload(); // hello
echo $message1->payload . PHP_EOL; // hello

// locks untill message is fetched from subject
// to limit lock timeout, pass optional timeout value
$message2 = $queue->next();
echo $message2->getPayload(); // world
echo $message2->payload() . PHP_EOL; // world

$client->publish('test_subject', 'hello');
$client->publish('test_subject', 'batching');
Expand Down

0 comments on commit c8e4957

Please sign in to comment.