This won't actually disable websockets if I recall.
There's a blocklist that may make it into uBO in the future that blocks 3rd party access to localhost and other IANA reserved IP addresses, though.
https://github.com/uBlockOrigin/uBlock-issues/issues?q=is%3A...