I use node-gcm behind a proxy. Setting the proxy option in the Sender constructor only works for the initial call to sendNoRetry. The retries pass the global object as this because they are called via the sendNoRetryMethod. I replaced these calls with self.sendNoRetry to pass the correct this.
I use node-gcm behind a proxy. Setting the
proxy
option in theSender
constructor only works for the initial call tosendNoRetry
. The retries pass the global object asthis
because they are called via thesendNoRetryMethod
. I replaced these calls withself.sendNoRetry
to pass the correctthis
.