@@ -134,7 +134,7 @@ const options = {
134134 ' < header name >' : ' < header value >'
135135 },
136136 contentEncoding: ' < Encoding type, e.g.: aesgcm or aes128gcm >' ,
137- proxy: ' < proxy server address >'
137+ proxy: ' < proxy server options >'
138138}
139139
140140webpush .sendNotification (
@@ -182,7 +182,9 @@ request only. This overrides any API key set via `setGCMAPIKey()`.
182182retained by the push service (by default, four weeks).
183183- ** headers** is an object with all the extra headers you want to add to the request.
184184- ** contentEncoding** is the type of push encoding to use (e.g. 'aesgcm', by default, or 'aes128gcm').
185- - ** proxy** proxy hostname/ip and a port to tunnel your requests through (eg. http://< hostname >:< port >).
185+ - ** proxy** is the [ HttpsProxyAgent's constructor argument] ( https://github.com/TooTallNate/node-https-proxy-agent#new-httpsproxyagentobject-options )
186+ that may either be a string URI of the proxy server (eg. http://< hostname >:< port >)
187+ or an "options" object with more specific properties.
186188
187189### Returns
188190
@@ -353,7 +355,7 @@ const options = {
353355 ' < header name >' : ' < header value >'
354356 },
355357 contentEncoding: ' < Encoding type, e.g.: aesgcm or aes128gcm >' ,
356- proxy: ' < proxy server address >'
358+ proxy: ' < proxy server options >'
357359}
358360
359361try {
@@ -407,7 +409,9 @@ request only. This overrides any API key set via `setGCMAPIKey()`.
407409retained by the push service (by default, four weeks).
408410- ** headers** is an object with all the extra headers you want to add to the request.
409411- ** contentEncoding** is the type of push encoding to use (e.g. 'aesgcm', by default, or 'aes128gcm').
410- - ** proxy** proxy hostname/ip and a port to tunnel your requests through (eg. http://< hostname >:< port >).
412+ - ** proxy** is the [ HttpsProxyAgent's constructor argument] ( https://github.com/TooTallNate/node-https-proxy-agent#new-httpsproxyagentobject-options )
413+ that may either be a string URI of the proxy server (eg. http://< hostname >:< port >)
414+ or an "options" object with more specific properties.
411415
412416### Returns
413417
0 commit comments