4049_1572836826 Posted March 12, 2023 Report Posted March 12, 2023 (edited) Hello, Is it possible to somehow find out if the bot/user is really online/connected/working ? using some kind of heartbeat function? Edited March 12, 2023 by 4049_1572836826 Quote
Dr. McKay Posted March 14, 2023 Report Posted March 14, 2023 If steam-user connects with a WebSocket, it sends pings automatically every 30 seconds and disconnects (and emits the disconnected event) if Steam doesn't reply. If you want to make sure that the pings get sent, you can force the connection protocol using the protocol option. Example: let user = new SteamUser({ protocol: SteamUser.EConnectionProtocol.WebSocket }); 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.