Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ouwou/discord-gateway-inspector
View Discord gateway messages in your browser
https://github.com/ouwou/discord-gateway-inspector
Last synced: 30 days ago
JSON representation
View Discord gateway messages in your browser
- Host: GitHub
- URL: https://github.com/ouwou/discord-gateway-inspector
- Owner: ouwou
- License: gpl-3.0
- Created: 2023-06-17T05:36:57.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-17T00:41:06.000Z (3 months ago)
- Last Synced: 2024-08-17T01:54:19.144Z (3 months ago)
- Language: JavaScript
- Size: 74.2 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-gateway-inspector
View Discord gateway messages in your browser![screenshot](./screenshot.png)
## Usage:
1. Download or clone the repo
2. Go to `about:debugging#/runtime/this-firefox`
3. Click "Load Temporary Add-on..."
4. Find and open `manifest.json`
5. Configure the extension as "always allow" so you don't have to manually start it
6. Open devtools and use the Gateway Inspector### Notes:
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 😼