Jump to content
McKay Development

https://steamcommunity.com/chat/ , crash ?


Recommended Posts

Posted (edited)

I use passport and  SteamStrategy to login my steam account to my bot, and i found this peculiar bug, 

When i enter from anyware to https://steamcommunity.com/chat/
The method  that handles the bot errors of SteamUser gets emited and the session of my bot ends, so i need to login again.

//Listen Error Bots Bidirectional
client.on('error', function(err) {
console.log('Bot-Error');
socket.emit('bot-errors', err); // Updates Live Notification
}, err => {
console.log('error');
console.log(err);
});

Thanks !

Edited by Duodecim
Posted

It would be helpful if you mentioned what the error you get actually is.

I'm going to assume that you're getting LoggedInElsewhere, which would suggest that you need to set logonID to a nonzero value when you log on.

Posted

Thanks for the reply Dr, i logged the error response and i get LogonSessionReplaced
image.png.dc13f3cd643d89e644f9b8f3736475cc.png

I look in the node-steam-user#methods- , and i saw the definition of logonID option

image.png.3b214094403b45d10916c55b6e995349.png

image.png.ce0f65218f12cd765af5db5f1826854c.png

with the loginID the session persist, this loginId must be a random number ?

Thanks !

Posted

It doesn't matter what the value is, it just has to be different. If you try to connect twice from the same public IP using the same logonID, then the first session will be booted. If you don't supply one (seems like webchat doesn't) then it defaults to 0.

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