JVz Posted October 24, 2019 Report Posted October 24, 2019 (edited) Hi.I'm using this code: let proxyUrl = "http://" + proxyUser + ":" + proxyPassword + "@" + proxyHost + ":" + proxyPort; let proxifiedRequest = request.defaults({ 'proxy': proxyUrl });let steamClient = new SteamClient.CMClient(); steamClient.setHttpProxy(proxyUrl); let community = new SteamCommunity({ request: proxifiedRequest }); let client = new SteamUser(steamClient); let manager = new TradeOfferManager({ "steam": client, "community": community, "language": "en", "cancelTime": 120000, "pendingCancelTime": 30000 }); and after loggin in I'm checking IP using this property client.publicIP but it shows my IP withput proxy. Am I missing something here? PS. 1 more unrelated question: how can I check If tradeoffer manger is fully logged in and nothing happened after initial loggin in (nothing disconnected and so on) and it is ready to send trades? Thx in advance Edited October 24, 2019 by JVz Quote
Dr. McKay Posted October 24, 2019 Report Posted October 24, 2019 What version of steam-user are you using? PS. 1 more unrelated question: how can I check If tradeoffer manger is fully logged in and nothing happened after initial loggin in (nothing disconnected and so on) and it is ready to send trades? It's ready to send trades once the callback fires without an error when you call setCookies. Quote
JVz Posted October 25, 2019 Author Report Posted October 25, 2019 What version of steam-user are you using? "steam-user": "^4.12.4" It's ready to send trades once the callback fires without an error when you call setCookies.Yes, but after some time community or client can disconnect or socket can hang up, and bot has to do relog, the problem is that disconnect event sometimes doesnt fire so I'm checking if everything is online and ready for trades before creating tradeoffer. Maybe there is a better way to do it? Quote
Dr. McKay Posted October 25, 2019 Report Posted October 25, 2019 As of steam-user v4, steam-client is not used. You'll need to read the docs to see the new way to set an HTTP proxy. Quote
JVz Posted October 25, 2019 Author Report Posted October 25, 2019 (edited) Works fine if I put httpProxy in constructorlet client = new SteamUser({"httpProxy": proxyUrl}); thx for help Edited October 25, 2019 by JVz Quote
Recommended Posts
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.