Skip to content

Commit d7fb74b

Browse files
committed
fix new API in README
1 parent fd0c9ae commit d7fb74b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ foreach ($endpoints as $endpoint) {
3636
$webPush->flush();
3737

3838
// send one notification and flush directly
39-
$webPush->sendNotification($endpoints[0], true);
39+
$webPush->sendNotification($endpoints[0], null, null, true);
4040
```
4141

4242
### GCM servers notes (Chrome)
@@ -57,7 +57,7 @@ $apiKeys = array(
5757
);
5858

5959
$webPush = new WebPush($apiKeys);
60-
$webPush->sendNotification($endpoint, true);
60+
$webPush->sendNotification($endpoint, null, null, true);
6161
```
6262

6363
### Changing the browser client

0 commit comments

Comments
 (0)