View Discord gateway messages in your browser
- Download or clone the repo
- Go to
about:debugging#/runtime/this-firefox
- Click "Load Temporary Add-on..."
- Find and open
manifest.json
- Configure the extension as "always allow" so you don't have to manually start it
- Open devtools and use the Gateway Inspector
Incoming messages are intercepted by latching on to the Discord socket's internal dispatch
event,
so op codes HELLO, RECONNECT, INVALID_SESSION, HEARTBEAT, and HEARTBEAT_ACK will not appear.
Outgoing messages are intercepted by detouring the internal WebSocket's send
function, so all
outgoing messages will appear.
The content script responsible for doing the hooking is always run regardless of whether or not devtools are open. If this bothers you then disable the extension if you aren't using it.
Sorry for the not-so-nice UI. I don't like frontend ๐ผ