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

Opal class makes ipfs.libp2p directly available #29

Closed
Tracked by #28
tabcat opened this issue Nov 22, 2022 · 1 comment
Closed
Tracked by #28

Opal class makes ipfs.libp2p directly available #29

tabcat opened this issue Nov 22, 2022 · 1 comment

Comments

@tabcat
Copy link
Member

tabcat commented Nov 22, 2022

The IPFS api type says ipfs.libp2p is undefined so will need to check for libp2p, throw if actually undefined, then directly expose libp2p from opal with the correct type.

@tabcat
Copy link
Member Author

tabcat commented Nov 23, 2022

Looks like ipfs.libp2p is likely to be deprecated in the future. Should still be fine after but may require creating the libp2p node before and handing it to ipfs if ipfs stops exposing it.

https://github.com/ipfs/js-ipfs/blob/6be59068cc99c517526bfa123ad475ae05fcbaef/packages/ipfs-core/src/components/index.js#L201-L207

@tabcat tabcat closed this as completed in cbeffc1 Nov 23, 2022
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

1 participant