Jump to content
McKay Development

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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
});

Share this post


Link to post
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...

×
×
  • Create New...