Jump to content


Photo

Error: Already logged on, cannot log on again

node.js node-steam-user

Best Answer T1MOXA , 09 July 2018 - 01:26 PM

 
I so understand I need to remove "client.logOn" so as there is "autoRelogin" option
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 T1MOXA

T1MOXA

    Advanced Member

  • Member
  • PipPipPip
  • 33 posts

Posted 09 July 2018 - 01:18 PM

My code:

client.on('disconnected', (eresult, msg) => {
    console.log(`Eresult: ${eresult}\nMsg: ${msg}`);
    setTimeout(() => client.logOn({ "accountName": client.username, "password": client.password }), 10e3);
});

Edited by T1MOXA, 09 July 2018 - 01:18 PM.


#2 T1MOXA

T1MOXA

    Advanced Member

  • Member
  • PipPipPip
  • 33 posts

Posted 09 July 2018 - 01:20 PM

Eresult: 20
Msg: ServiceUnavailable


#3 T1MOXA

T1MOXA

    Advanced Member

  • Member
  • PipPipPip
  • 33 posts

Posted 09 July 2018 - 01:26 PM   Best Answer

 
I so understand I need to remove "client.logOn" so as there is "autoRelogin" option

Edited by T1MOXA, 09 July 2018 - 01:26 PM.

  • Dr. McKay 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