Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

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

Open
arj03 opened this issue Mar 26, 2021 · 1 comment
Open

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

arj03 opened this issue Mar 26, 2021 · 1 comment

Comments

@arj03
Copy link
Owner

arj03 commented Mar 26, 2021

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
Copy link
Collaborator

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

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