Jump to content
McKay Development

Problem with using a proxy


rosyy
 Share

Recommended Posts

Problem with connecting proxy.
There are two outcomes when connecting a proxy:
1. The proxy is working - the code is being executed.
2. The proxy is working - but the code is not executed and there is no error in the console, because of this I cannot trace the problem and solve it.

How can I track this error? I will be grateful for help

Code:

const SteamClient = require('steam-client');
const SteamUser = require('steam-user');

let user = new SteamUser({
  singleSentryfile: false,
  promptSteamGuardCode: false,
  dateDirectory: null,
  httpProxy: 'http://IP:PORT'
});

user.logOn({ accountName: 'USERNAME', password: 'PASSWORD' });

user.on('error', e => {
console.log(e);
return;
});

user.on('emailInfo', function(address, validated) {
    if (validated == true) {
        console.log('Yes', validated);
		return;
    } else (validated == false) 
	{
        console.log('No', validated);
		return;
    }
});
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...