Jump to content
McKay Development


  • Content Count

  • Joined

  • Last visited

Everything posted by aatmjeets

  1. How to get user data/profile data in node-steam-user? I know it's a bit stupid but i can't find it anywhere. Kindly help.
  2. Sorry, i didn't update. the issues is fixed. actually in using script other than main, electron doesn't allow us to use network. Either use the code to connect in main, or we have to do separate socketing there.
  3. Uncaught TypeError: setTimeout(...).unref is not a function at WebSocketBase.disconnect (./node_modules/websocket13/lib/base.js:68) at WebSocketConnection.end (./node_modules/steam-user/components/connection_protocols/websocket.js:153) at SteamUser._disconnect (./node_modules/steam-user/components/logon.js:312) at ./node_modules/steam-user/components/logon.js:259 this is the error that I encountered. do i have to define a socket, to use steam user here? also this, error is only encountered inside electron, the script runs fine without electron.
  4. I trying to make a csgo application on electron, since I am using node-steam user it is showing WebSocketBase.disconnect, WebSocketConnection.end and SteamUser._disconnected issues. I think this some issue with electron, but is this important to define websockets before using steam-user. P.s. my other applications worked with socketing. the code goes here: const form = document.getElementById("details"); form.addEventListener('submit',function(event){ event.preventDefault(); const name = document.getElementById("user").value; //console.log(name); const pass = do
  5. Extremely sorry for wasting the time, i figured it out. It was offer.addMyItem, while it should be offer.addTheirItem.
  6. I keep getting this error code 26, i am asking for a random item from an account. client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); community.startConfirmationChecker(10000, config.bot1.idSecret); getRandomItem(); }); function getRandomItem() { const partner = config.bot1.trustedParty; const appid = 730; const contextid = 2; const offer = manager.createOffer(partner); manager.loadUserInventory(partner, appid, contextid, true, (err, inventory) => {
  7. Thanks for the kind reply. if have done this with out a loop like this var gg = item.actions; var str = gg[0].link; This worked for me.
  8. for (item of inventory){ var gg = item.actions.values(); console.log(gg.next().value); } this function in manager.getUserInventoryContents gives below mentioned output, how to get link out from the array? i have tried some things but can't figure out. Please help! { link: 'steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S%owner_steamid%A%assetid%D14331270147200298841', name: 'Inspect in Game...' }
  9. console.log(item.actions.link) shows undefined when executed.
  • Create New...