Core\WebPush
Sends push notifications to a browser (Web Push). The browser gives your page a subscription. Your server reads it with subscription. Each message is encrypted for that one browser, and only that browser can read it.
Members
3 members.
| Member | Signature |
|---|---|
subscription | subscription(string $json): Core\WebPush\Subscription |
applicationServerKey | applicationServerKey(Core\Crypto\KeyPair $vapid): string |
send | send(Core\WebPush\Subscription $to, bytes $payload, Core\Crypto\KeyPair $vapid, string $subject, int $ttl = 86400): Core\WebPush\Sent |
