ECONNREFUSED error when trying to connect to a websocket

I am able to connect and send messages to the websocket normally from my aplication but whenever I try to do it through Postman I just get this message as if the server isn’t even running:

Error: connect ECONNREFUSED

I’ve tried disabling SSL verification and the system proxy but none of that helped. Any ideas? I can post screenshots if needed.

EDIT: I have made absolutely sure it’s trying to connect to the correct endpoint and port. Thought I’d put that out there since every other post on here about ECONNREFUSED errors has at least one reply asking if they made sure the port is correct lol.