I often deal with WebSocket failures, and debugging fixes is hard because I have not found a good way to simulate them. A lot of Linux tools are no longer available because macOS has now transitioned into using pf
(the way I understand it; I'm a beginner at all this).
I've tried the native firewall, which doesn't seem to have enough control to block browser WebSockets only, and murus, which can probably do the trick, but I haven't been able to.
Are there any known ways to simulate WebSocket failures in a browser in order to debug fallbacks, etc?