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 127.0.0.1:3001

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.