Hello, some methods give an error when you send a request directly to steam or sometimes the server ips is banned,.
I am calling from
TradeOfferManager.getUserInventoryContents
In depend i look source it's calling from "node-steamcommunity". can we just give this function or proxy globally, like steamUser?
Example;
const client = new SteamUser( {
machineIdType: SteamUser.EMachineIDType.PersistentRandom,
httpProxy: `http://${ proxy }`,
autoRelogin: false,
picsCacheAll: true,
webCompatibilityMode: true,
protocol: SteamUser.EConnectionProtocol.WebSocket
} );
Maybe while creating SteamCommunity or TradeOfferManager
const community = new SteamCommunity( {} );
community.setCookies( cookies );
const manager = new TradeOfferManager( {
steam: steamUser,
community: community,
domain: "127.0.0.1",
language: 'en',
useAccessToken: true,
pollInterval: Math.floor( Math.random() * 1000 ) + 1000
} );
manager.setCookies( cookies );