...
If this responds with a 500 error, then communication is okay. Otherwise the route is not available (probably because of firewalls).
If not, typically a 403 Forbidden response, indicates that the routes are not open.
(If the WebSocket URL is wss, then use a https connection)
...