Jump to content
McKay Development

Recommended Posts

Posted

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

 

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