iLuk
-
Posts
6 -
Joined
-
Last visited
Posts posted by iLuk
-
-
I can do something like that:
var partnerName; client.getPersonas([partnerId], function (persona) { partnerName = persona[partnerId].player_name; }); setTimeout(function(){ if (partnerName == undefined) // data unavailable },2000);
but is there a better option?
-
When you are logged out. It happened to my bot when it was reconnecting to Steam after losing the connection.
@Edit
Can I check somehow if the bot is logged in?
-
Hi, when I use GetPersonas there's a possibility that the requested data would be unavailable. Unfortunately there's no error callback. How can I check it?
I mean something like this:
if (GetPersonas is unavailable) // do something...
-
Thanks for the answer, it explains a lot for me! Am I right that I also don't get notifications from Steam client about "receivedOfferChanged"?
And polling every 5 000 ms is ok with Steam?
-
Hi, I would like to know what is the fastest way to get notifications from Steam. Should I use:
"steam": client,
or set pollInterval:"pollInterval": 1000
If so then how low can I go?Maybe both?Sorry if I said something incorrect.
getPersonas - unavailable data
in node-steam-user
Posted
It also happens when the bot is logged in. How can I edit this function to return error when it fails?