node-steam-user v0.0.3
SteamUser
This is a handler for user account-related functionality, to be used with the node-steam module. It is basically a straight copy of Seishun's module here.
Initialize it by passing a SteamClient instance to the constructor.
var Steam = require('node-steam'),
SteamUser = require('node-steam-user');
var client = new Steam.SteamClient();
Steam.SteamUser = new SteamUser(client);Methods
logOn(logOnDetails)
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.
gamesPlayed(gamesPlayed)
Tells Steam you are playing game(s). gamesPlayed is a CMsgClientGamesPlayed object.
Events
'loggedOn'
Emitted when a CMsgClientLogonResponse message is received with an eresult indicating successful logon. Returns a decoded CMsgClientLogonResponse object.
'logOnError'
Emitted when a CMsgClientLogonResponse message is received with an eresult indicating unsuccessful logon. Returns a decoded CMsgClientLogonResponse object. To know what happened, have a look at the standard Steam eresults and handle accordingly.
'updateMachineAuth'
Emitted when a CMsgClientUpdateMachineAuth message is received, usually in response to an invalid (or no) sentry file. Returns the decoded CMsgClientUpdateMachineAuth object and a callback.
Call callback with a CMsgClientUpdateMachineAuthResponse object to accept this sentry update.