OczkoSX Posted January 2, 2017 Report Posted January 2, 2017 Im connected with steam. I want to log off, and then log in. How Can I do it? I've tried doing Client.logOff(), Client.logOn(details); but it returns that im already logged. Thanks in advance Quote
Dr. McKay Posted January 2, 2017 Report Posted January 2, 2017 Why do you want to reconnect? I don't see any reason you'd want to do this. If you need to renew your web session, just use webLogOn. That said, you can reconnect. To do that, you need to wait for the disconnected event to fire before you try to log on again. Quote
OczkoSX Posted January 3, 2017 Author Report Posted January 3, 2017 I don't really now to be honest. I've just thought that it will be good feature when something went wrong. Should I declare global variable with a Boolean value, set it as true in reconnect function, and read whether it is true on disconnect event and then log? Quote
Dr. McKay Posted January 3, 2017 Report Posted January 3, 2017 That's probably a good way to do it, yeah. But for the record, I really think that it's useless to do this. I've never had a problem be solved with a complete reconnect. Quote
OczkoSX Posted January 4, 2017 Author Report Posted January 4, 2017 I won't do that then. Thanks! Quote
Recommended Posts
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.