Skip to content

Commit 195ab6d

Browse files
authored
Update client.md
1 parent f5a993a commit 195ab6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/docs/client.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ $ composer require sajya/client
2727
use Illuminate\Support\Facades\Http;
2828
use Sajya\Client\Client;
2929

30+
// Create the JSON RPC client
3031
$client = new Client(Http::baseUrl('http://localhost:8000/api/v1/endpoint'));
3132

33+
// Call the 'tennis' method on the server
3234
$response = $client->execute('tennis@ping');
3335

36+
// Print the response from the server
3437
$response->result(); // pong
3538
```
3639

0 commit comments

Comments
 (0)