Jump to content
McKay Development

Recommended Posts

  • 3 weeks later...

As of v1.20.0, you can pass your own SteamCommunity to the constructor of TradeOfferManager. You can pass your own request to the SteamCommunity constructor and you can specify a proxy to request via request.defaults.

 

Sorry for grave digging but is this the best approach?

var request = require("request");
var TradeOfferManager = require('steam-tradeoffer-manager');
var steamcommunity = require("steamcommunity");

var proxyUrl = "http://" + user + ":" + password + "@" + host + ":" + port;
var proxifiedRequest = request.defaults({'proxy': proxyUrl});

var community = new steamcommunity({request: proxifiedRequest});
var manager = new TradeOfferManager({community: community});
Edited by cookie
Link to comment
Share on other sites

  • 7 months later...
var request = require("request");
var TradeOfferManager = require('steam-tradeoffer-manager');
var steamcommunity = require("steamcommunity");

var proxyUrl = "http://" + user + ":" + password + "@" + host + ":" + port;
var proxifiedRequest = request.defaults({'proxy': proxyUrl});

var community = new steamcommunity({request: proxifiedRequest});
var manager = new TradeOfferManager({community: community});

This code will be have change ip in every new loadUserInventory or every login to steam?

Edited by jensej
Link to comment
Share on other sites

  • 2 weeks later...
var request = require("request");
var TradeOfferManager = require('steam-tradeoffer-manager');
var steamcommunity = require("steamcommunity");

var proxyUrl = "http://" + user + ":" + password + "@" + host + ":" + port;
var proxifiedRequest = request.defaults({'proxy': proxyUrl});

var community = new steamcommunity({request: proxifiedRequest});
var manager = new TradeOfferManager({community: community});

This code will be have change ip in every new loadUserInventory or every login to steam?

 

refresh question

Link to comment
Share on other sites

  • 2 months later...

Once you're logged in, you need to use the same IP for all your requests.

 

how i can do this with steam-user ?

 

i try new beta of steam-client and steam-user for httpsocket but always get  setHttpSocket is not a function

 

is there a other way ? want use the 2 internet access i and friend have here at home ips for split 1 ip to one account and other ip to other account

 

 

thanks

Link to comment
Share on other sites

It's setHttpProxy, not setHttpSocket.

Sorry was because of

https://github.com/DoctorMcKay/node-steam-client/releases/tag/v2.3.0-beta

There stands setHttpSocket :)

 

HTTP socket by calling client.setHttpSocket(url) 

 

i tryed so but it not works:

 

var steam      = require('steam-client');
var steamclient = new steam.CMClient();

steamclient.setHttpProxy(proxyUrl);

var SteamUser = require('steam-user');
var client = new SteamUser({steamclient});
to i something wrong ?
 
also when it works is whole node steam-user and steam-client and steamcommunity over proxy or only web // http requests to steamcommunity.com ?

 

 

 

Edited by Gamerios
Link to comment
Share on other sites

  • 1 month later...

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...