TsgcWSAPIServer_WebPush › Events
TsgcWSAPIServer_WebPush Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
Subscriptions
| Name | Description |
| OnWebPushSubscription | Fires when a browser POSTs to the Subscription endpoint after calling PushManager.subscribe(); receive the endpoint, p256dh key and auth secret to persist server-side. |
| OnWebPushUnsubscription | Fires when a browser POSTs to the Unsubscription endpoint (PushManager.unsubscribe() or service-worker change); use it to remove the subscription from your persistent store. |
Errors
| Name | Description |
| OnWebPushSendNotificationException | Fires when an exception is raised while POSTing a notification to the push service (typical causes: 400 Bad Request, 404/410 Gone for expired endpoints, TLS or network failures). |
All Events (alphabetical)
| Name | Description |
| OnWebPushSendNotificationException | Fires when an exception is raised while POSTing a notification to the push service (typical causes: 400 Bad Request, 404/410 Gone for expired endpoints, TLS or network failures). |
| OnWebPushSubscription | Fires when a browser POSTs to the Subscription endpoint after calling PushManager.subscribe(); receive the endpoint, p256dh key and auth secret to persist server-side. |
| OnWebPushUnsubscription | Fires when a browser POSTs to the Unsubscription endpoint (PushManager.unsubscribe() or service-worker change); use it to remove the subscription from your persistent store. |