ipfs / js-kubo-rpc-client

A client library for the Kubo RPC API
https://www.npmjs.com/package/kubo-rpc-client
Other
33 stars 7 forks source link

Browser ipfs-http-client not replicating pubsub from kubo daemon. #70

Open threshold862543 opened 2 years ago

threshold862543 commented 2 years ago

Severity:

High - The main functionality of the application does not work, API breakage, repo format breakage, etc.

Description:

I am running a kubo ipfs daemon on a given machine. I'm using ipfs-http-client (version 57.0.0) on a Node.js application server on the same machine to write entries to a database. If I connect other ipfs-http-clients running on on the same node server (different multithreaded processes), I am able to retrieve the oplog and build the index of database entries. However, when I try to use a browserified bundle (version 56.0.0 due to bundling issues with later versions) and run the ipfs-http-client in the browser, I am able to open the database, but the oplog returns as empty. It seems like something about the browser environment is preventing pubsub/the oplog from functioning properly, whereas the same general setup with Node.js worked as expected (each ipfs-http-client instance and orbitdb instance was able to maintain it's own synced copy of the database).

Steps to reproduce the error:

welcome[bot] commented 2 years ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.