Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy/Agent setting does not work (agent) #41

Open
sfakir opened this issue Jan 26, 2018 · 0 comments
Open

Proxy/Agent setting does not work (agent) #41

sfakir opened this issue Jan 26, 2018 · 0 comments

Comments

@sfakir
Copy link

sfakir commented Jan 26, 2018

The following lines to copy the values to parse fcmOptions.agent into an object instead copying it.

//copying the fcmOptions object to avoid problems in parallel calls 
var mFcmOptions = JSON.parse(JSON.stringify(self.fcmOptions));

workaround (but not really pretty)

    var agent = self.fcmOptions.agent;
    var mFcmOptions = JSON.parse(JSON.stringify(self.fcmOptions));
    mFcmOptions.agent = agent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant