arj03 / ssb-browser-demo

A secure scuttlebutt client interface running in the browser
Other
58 stars 11 forks source link

WebSocket connection to 'ws://localhost:4977/ #282

Open arj03 opened 3 years ago

arj03 commented 3 years ago

I'm getting these now in the console (not sure if this was after DHT merge or also there before). It's a bit wierd why it would try to connect to localhost.

WebSocket connection to 'ws://localhost:4977/' failed: 
KyleMaas commented 3 years ago

That'll be because of Hyperswarm-Web. localhost is one of the default gateway servers it can use. I think the main gateway's having some issues today - I keep seeing 502's from it - so I think it's using it as a fallback. This would allow us to override the default options and remove localhost from the list of default servers so it would just fail in situations like this:

https://gitlab.com/staltz/ssb-dht-invite/-/issues/3