Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Connection establishment: net::ERR_CONNECTION_RESET #130

Open
gitslagga opened this issue Jan 3, 2019 · 1 comment
Open

Connection establishment: net::ERR_CONNECTION_RESET #130

gitslagga opened this issue Jan 3, 2019 · 1 comment

Comments

@gitslagga
Copy link

Usually the websocket connected is available, but today it report a issue here is :

clusterws.min.js:1 WebSocket connection to 'wss://wss.amberainsider.com/birdstrx' failed: Error in connection establishment: net::ERR_CONNECTION_RESET

@goriunov
Copy link
Member

goriunov commented Jan 3, 2019

I have tried connecting to the above url and it works alright from my computer i believe it is an issue with your network/firewall

i have written simple html page which does that

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <script src="./dist/browser/clusterws.min.js"></script>
</head>
<body>
  <script>
    let socket = new ClusterWS({
      url: 'wss://wss.amberainsider.com/birdstrx'
    });

    socket.on('connect', () => {
      console.log("Socket is connected");
    })

    socket.on('error', (err) => {
      console.log("Got an error:", err);
    })

    socket.on('close', (code, reason) => {
      console.log("Closed: ", code, reason);
    })
  </script>
</body>
</html>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants