If on Linux/Mac OS Discord
# example commands
sudo mv $XDG_RUNTIME_DIR/discord-ipc-0 ./discord-ipc-0 # backup original socket
sudo socat -t100 -x -v UNIX-LISTEN:$XDG_RUNTIME_DIR/discord-ipc-0,mode=777,reuseaddr,fork UNIX-CONNECT:$(pwd)/discord-ipc-0
socat opens a bidirectional tunnel that will forward message to and from these two sockets.
-v
will print debug message to stdout, allowing you to read the raw hex data traffic