Daniel Posted June 9 Report Posted June 9 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 June 9 Report Posted June 9 No, since loggedOn may be emitted multiple times in response to one logOn() call. Quote
Ayyyy Posted June 14 Report Posted June 14 You can technically use import { on } from "node:events"; which can await an event on any eventemitter. Quote
Dr. McKay Posted June 15 Report Posted June 15 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.