Jump to content


Photo

getServerList

node.js node-steam-user

Best Answer Dr. McKay , 04 April 2019 - 04:26 PM

As of v4.0.0, the first argument to all callbacks is err. See the release notes here.

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 Mrdbuffalo

Mrdbuffalo

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 04 April 2019 - 02:15 PM

So I am using steam-user to get a list of gameservers. My code worked for a while but when I tried to do it again on another script it just returns "null". I have tried everything I can think of and I am out of ideas. Anything to point me in the right direction would be greatly appreciated.

const SteamUser = require('steam-user');
const client = new SteamUser();


client.logOn();

client.on('loggedOn', () => {
  console.log('Logged into Steam');
  client.getServerList(null, 100, (servers) => {
    console.log(servers);
  })
});

 


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,111 posts

Posted 04 April 2019 - 04:26 PM   Best Answer

As of v4.0.0, the first argument to all callbacks is err. See the release notes here.


  • Mrdbuffalo likes this





Also tagged with one or more of these keywords: node.js, node-steam-user

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users