Skip to content

Commit 38683eb

Browse files
authored
Added note how to use a custom cluster with the AsyncClient
1 parent b755b7f commit 38683eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ composer require api-clients/pusher
2020
```php
2121
$loop = Factory::create();
2222
$client = AsyncClient::create($loop, 'Application ID here');
23+
// OR when you need to specify the cluster
24+
$client = AsyncClient::create($loop, 'Application ID here', null, 'cluster-here');
2325

2426
$client->channel('channel_name')->subscribe(
2527
function (Event $event) { // Gets called for each incoming event

0 commit comments

Comments
 (0)