Jump to content


Photo

user using phone

node.js node-steam-user

  • Please log in to reply
2 replies to this topic

#1 Ino

Ino

    Advanced Member

  • Member
  • PipPipPip
  • 100 posts

Posted 31 July 2019 - 10:57 AM

Hi, how can i know that user online by phone ? Can i know it using event "user" ?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,212 posts

Posted 01 August 2019 - 02:55 AM

It's in their persona_state_flags. You can see the available flags here.

 

So, you'd want to check if (user.persona_state_flags & SteamUser.EPersonaStateFlag.ClientTypeMobile)



#3 Ino

Ino

    Advanced Member

  • Member
  • PipPipPip
  • 100 posts

Posted 01 August 2019 - 04:47 AM

It's in their persona_state_flags. You can see the available flags here.

 

So, you'd want to check if (user.persona_state_flags & SteamUser.EPersonaStateFlag.ClientTypeMobile)

thank you !
I've got one more question.If I have a new friend, but I haven’t received event "user" - i use method getPersonas. But if i delete this friend - event "friendRelationship" does not emitted.







Also tagged with one or more of these keywords: node.js, node-steam-user

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users