Created
March 13, 2026 13:20
-
-
Save Alia5/f303fdaeb6442846e37e93faf2cdb670 to your computer and use it in GitHub Desktop.
Intercept all Steam messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Intercept ALL SteamClient calls to find what IPC fires | |
| const _orig = SteamClient.sendMessage ?? SteamClient.Send | |
| // OR spy on the Apps namespace | |
| Object.keys(SteamClient).forEach(ns => { | |
| Object.keys(SteamClient[ns] ?? {}).forEach(fn => { | |
| if (typeof SteamClient[ns][fn] === 'function') { | |
| const orig = SteamClient[ns][fn].bind(SteamClient[ns]) | |
| SteamClient[ns][fn] = (...args) => { | |
| console.log(`SteamClient.${ns}.${fn}`, args) | |
| return orig(...args) | |
| } | |
| } | |
| }) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment