Bertman Posted 5 hours ago Report Posted 5 hours ago Hello, I've been trying to get this to work without any luck, and I can't find much information about it, so I thought I'd ask here. I'm currently trying to retrieve live match data for a user on my friends list who is currently playing a CS2 casual match, using the following code: let user = new SteamUser(); let csgo = new GlobalOffensive(user); user.logOn({ refreshToken: 'x' }); user.on('loggedOn', () => { console.log('user logged on') user.setPersona(SteamUser.EPersonaState.Online); user.gamesPlayed(730); }) csgo.on('debug', (message) => { console.log(message); }) csgo.on('connectedToGC', () => { console.log('connected to GC') csgo.requestLiveGameForUser('76561199034391625'); }); csgo.on('matchList', (matches, data) => { console.log(data) }) The connectedToGC event is emitted successfully, and requestLiveGameForUser does send the following message: "Sending GC message MatchListRequestLiveGameForUser" but it never emits the matchList event in return. I've also tried requestRecentGames(), which works fine for my own logged-in user, but not for friends. That's not an issue for what I'm doing, though. Any help or advice would be greatly appreciated. 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.