Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 4b36877

Browse files
committed
Fixed inconsistent variable naming in README.md
The variable `$client` was used as `$c` in the example.
1 parent b0a3dec commit 4b36877

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ $callback = function($payload)
6767
$client->subscribe("foo", $callback);
6868

6969
# Request
70-
$c->request('sayhello', 'Marty McFly', function ($response) {
70+
$client->request('sayhello', 'Marty McFly', function ($response) {
7171
echo $response->getBody();
7272
});
7373

7474
# Responding to requests
75-
$sid = $c->subscribe("sayhello", function ($res) {
75+
$sid = $client->subscribe("sayhello", function ($res) {
7676
$res->reply("Hello, " . $res->getBody() . " !!!");
7777
});
7878

0 commit comments

Comments
 (0)