Daniel Posted Monday at 09:56 AM Report Posted Monday at 09:56 AM Is there a way to use the logOn method in the "steam-user" module with a Promise, i.e., using await? Using the loggedOn event instead has been giving me a lot of headaches, and I still haven’t been able to implement it reliably. Quote
Dr. McKay Posted Monday at 11:20 PM Report Posted Monday at 11:20 PM No, since loggedOn may be emitted multiple times in response to one logOn() call. Quote
Ayyyy Posted 13 hours ago Report Posted 13 hours ago You can technically use import { on } from "node:events"; which can await an event on any eventemitter. Quote
Dr. McKay Posted 9 hours ago Report Posted 9 hours ago Yes, you could, and then things would fall over when Steam goes down and your client reconnects since you'd miss that second loggedOn event. 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.