Skip to content

Instantly share code, notes, and snippets.

@Alia5
Created March 13, 2026 13:20
Show Gist options
  • Select an option

  • Save Alia5/f303fdaeb6442846e37e93faf2cdb670 to your computer and use it in GitHub Desktop.

Select an option

Save Alia5/f303fdaeb6442846e37e93faf2cdb670 to your computer and use it in GitHub Desktop.
Intercept all Steam messages
// 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