Hey, I am using the steam-user to connect with my user:
// Steam logon options
var logOnOptions = {
"accountName": config.username,
"password": base64.decode(config.password),
"twoFactorCode": SteamTotp.getAuthCode(config.authCode)
};
console.log('Trying to connect to steam...');
client.logOn(logOnOptions);
and using the events:
client.on('loggedOn', function() {
console.log("Successfully logged in to steam");
});
client.on('error', function(e) {
console.log('Steam Error: ');
console.log(e);
});
client.on('disconnected', function(eresult, msg) {
console.log('Steam disconnected: ');
console.log(eresult);
});
Most of the time the connection is working and everything works ok, however there are times where I call the login function and the loggedOn function isn't being called. It seems like steam junky servers are causing that. However I would still like to retry connect every time I fail. Didn't manage to find any event to catch if I failed to connect - so I can try to reconnect and haven't seem any variables inside client that I can use to check if the connection succeeded. Any way to solve this issue? Allow the steam user to retry connect or any other solution to make sure it will connect eventually?