Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Latest commit

 

History

History

user

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

SteamUser

This is a handler for user account-related functionality. Initialize it by passing a SteamClient instance to the constructor.

var steamUser = new Steam.SteamUser(steamClient);

Methods

logOn(logOnDetails)

Sets SteamClient#steamID to the default value for user accounts and sends a ClientLogon message. logOnDetails is a CMsgClientLogon object. It's used as-is except protocol_version is set to the currently implemented protocol version.

requestWebAPIAuthenticateUserNonce(callback)

Requests a nonce for WebAPI's AuthenticateUser method. The first argument to callback will be a CMsgClientRequestWebAPIAuthenticateUserNonceResponse object.

gamesPlayed(gamesPlayed)

Tells Steam you are playing game(s). gamesPlayed is a CMsgClientGamesPlayed object.

Events

'updateMachineAuth'

Call callback with a CMsgClientUpdateMachineAuthResponse object to accept this sentry update.

'tradeOffers'

  • New count (can be zero)

Your number of pending incoming trade offers has changed.