@@ -177,7 +177,7 @@ request only. This overrides any API key set via `setGCMAPIKey()`.
177
177
- ** vapidDetails** should be an object with * subject* , * publicKey* and
178
178
* privateKey* values defined. These values should follow the [ VAPID Spec] ( https://tools.ietf.org/html/draft-thomson-webpush-vapid ) .
179
179
- ** TTL** is a value in seconds that describes how long a push message is
180
- retained by the push service (by default, four weeks);
180
+ retained by the push service (by default, four weeks).
181
181
- ** headers** is an object with all the extra headers you want to add to the request.
182
182
183
183
### Returns
@@ -340,7 +340,10 @@ const options = {
340
340
publicKey: ' < URL Safe Base64 Encoded Public Key >' ,
341
341
privateKey: ' < URL Safe Base64 Encoded Private Key >' ,
342
342
}
343
- TTL : < Number >
343
+ TTL : < Number > ,
344
+ headers: {
345
+ ' < header name >' : ' < header value >'
346
+ }
344
347
}
345
348
346
349
try {
@@ -391,7 +394,8 @@ request only. This overrides any API key set via `setGCMAPIKey()`.
391
394
- ** vapidDetails** should be an object with * subject* , * publicKey* and
392
395
* privateKey* values defined. These values should follow the [ VAPID Spec] ( https://tools.ietf.org/html/draft-thomson-webpush-vapid ) .
393
396
- ** TTL** is a value in seconds that describes how long a push message is
394
- retained by the push service (by default, four weeks);
397
+ retained by the push service (by default, four weeks).
398
+ - ** headers** is an object with all the extra headers you want to add to the request.
395
399
396
400
### Returns
397
401
0 commit comments