@@ -47,8 +47,8 @@ WebPushLib.prototype.setGCMAPIKey = function(apiKey) {
47
47
* @param {string } subject This must be either a URL or a 'mailto:'
48
48
* address. For example: 'https://my-site.com/contact' or
49
49
50
- * @param {Buffer } publicKey The public VAPID key.
51
- * @param {Buffer } privateKey The private VAPID key.
50
+ * @param {string } publicKey The public VAPID key, a URL safe, base64 encoded string
51
+ * @param {string } privateKey The private VAPID key, a URL safe, base64 encoded string .
52
52
*/
53
53
WebPushLib . prototype . setVapidDetails =
54
54
function ( subject , publicKey , privateKey ) {
@@ -75,7 +75,7 @@ WebPushLib.prototype.setVapidDetails =
75
75
* This method will throw an error if there is an issue with the input.
76
76
* @param {PushSubscription } subscription The PushSubscription you wish to
77
77
* send the notification to.
78
- * @param {string } [payload] The payload you wish to send to the
78
+ * @param {string|Buffer } [payload] The payload you wish to send to the
79
79
* the user.
80
80
* @param {Object } [options] Options for the GCM API key and
81
81
* vapid keys can be passed in if they are unique for each notification you
@@ -273,7 +273,7 @@ WebPushLib.prototype.generateRequestDetails =
273
273
* payload and any options.
274
274
* @param {PushSubscription } subscription The PushSubscription you wish to
275
275
* send the notification to.
276
- * @param {string } [payload] The payload you wish to send to the
276
+ * @param {string|Buffer } [payload] The payload you wish to send to the
277
277
* the user.
278
278
* @param {Object } [options] Options for the GCM API key and
279
279
* vapid keys can be passed in if they are unique for each notification you
0 commit comments