Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPFS: Enabling WebSocket (and WebSocket Secure) for js-ipfs (Brower) Interoperability #101

Open
5310 opened this issue Apr 13, 2018 · 1 comment
Assignees

Comments

@5310
Copy link

5310 commented Apr 13, 2018

If it's an acceptable use-case, I would like to request interoperability between js-ipfs (browser) nodes and the Infura node.

At the moment, the only way js-ipfs browser nodes can connect to go-ipfs nodes is via WebSocket. go-ipfs does support the WebSocket transport as is, if enabled in the config. The current Infura go-ipfs node only configures the TCP transport over IPv6, (which I assume is made to work with IPv4 with an endpoint proxy already in use.)

But browsers only allow pages loaded securely to connect to WebSocket Secure, which go-ipfs currently does not (cannot?) support natively. So, on top of enabling the transport, something needs to wrap that endpoint with a valid SSL setup.

The official issue regarding this matter suggests running nginx as an example proxy. Presumably, the endpoint proxy already in use can also serve that purpose.

@ncocchiaro
Copy link
Contributor

Interesting, it's not something we offer at the moment, as you noted, but certainly something we can look into.

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

No branches or pull requests

3 participants