Froxz Posted February 17, 2019 Report Posted February 17, 2019 Hi,Currently I'm using v3 version: const Steam = require('steam-client'); const SteamUser = require('steam-user'); const SteamCommunity = require('steamcommunity'); const TradeOfferManager = require('steam-tradeoffer-manager'); let client = new Steam.CMClient(); client.setHttpProxy(proxyUrl); let user = new SteamUser(client, { debug: true, singleSentryfile: false, autoRelogin: true, dataDirectory: '/files/clients' }); let community = new SteamCommunity(); let manager = new TradeOfferManager({ steam: user, community: community }); And in v4 I should change to: const SteamUser = require('steam-user'); const SteamCommunity = require('steamcommunity'); const TradeOfferManager = require('steam-tradeoffer-manager'); let user = new SteamUser({ debug: true, singleSentryfile: false, autoRelogin: true, dataDirectory: '/files/clients' }); user.setHttpProxy(proxyUrl); let community = new SteamCommunity(); let manager = new TradeOfferManager({ steam: user, community: community }); Can you advice please?NOTE: so v4 node-user replaces steam-client? Quote
Dr. McKay Posted February 18, 2019 Report Posted February 18, 2019 Yes, steam-client is obsolete with v4. It's built into steam-user now. And user.setHttpProxy isn't going to work. You should use: let user = new SteamUser({ debug: true, singleSentryfile: false, autoRelogin: true, dataDirectory: '/files/clients', httpProxy: proxyUrl }); Jmopel 1 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.