GetScatter / scatter-js

Importable JavaScript library that allows web applications to directly interface with Scatter Desktop, Classic and Mobile.
MIT License
262 stars 148 forks source link

Scatter connect error - local.get-scatter.com #138

Closed dgthbss closed 5 years ago

dgthbss commented 5 years ago

I use @scatterjs/core - 2.7.44, @scatterjs/eosjs2 - 1.5.26, Scatter Desktop v11.0.1. My Scatter Desktop v11.0.1 Local socket ports is 50005, 50006.

1

2

One can connect but others are not.

matei-radu commented 5 years ago

That is normal.

ScatterJS will attempt to connect to multiple ports because it is unsure which one your Scatter Desktop is using:

Your Scatter Desktop is using 50006 so only the connection to https://loca.get-scatter.com:50006 succeeded.

In general, as long as one of the attempts succeeds the other ones that fail can be safely ignored.

nsjames commented 5 years ago

That's 100% correct. Sadly we can't catch and hide those errors as they are thrown by the browser. Makes things messy, but the fallback ports make connections much more resilient for machines who have ports locked (like those using docker)