-
Notifications
You must be signed in to change notification settings - Fork 54
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
allow for custom DWN override in web5 connect. #162
Comments
Want to clarify here that maybe another way to do this is override the web5-js/packages/web5/src/web5.ts Line 112 in d8e2be7
Note the above: |
Hey @andorsk Has there been any progress on this? I still cannot find a way to connect the web5 client to my locally running DWN, or even to use a specific DID to connect to the default DWNs. I don't know if I'm missing something... If there's a way to circumvent this limitation I'd appreciate any pointers.. 🙏 |
@cbruguera there's a few different things you are discussing in the above comment:
There is supposed to be an update to web5 connect in the near future, so this #163 is on hold until that PR gets merged. Tagging @frankhinek, who might know a little more about the web5 connect update here |
@andorsk thanks for your reply. I'll look forward to that PR merge then. In the meantime, however, what would be the way to connect to a local DWN?... Maybe I'm digressing a bit from the topic of this thread, but I'm running a DWN (from the dwn-server repo) and I would like to connect to it to do some simple data store and retrieve tests. Now, given that the web5 agent is not ready yet, what would be the way? Are there any other clients other than the web5 SDK, or should I connect to it through a third party JSON-RPC client? Is there any simple way to test the DWN server at the moment? |
@andorsk Partly for historical reasons & DevEx. The intent was to direct devs to use Once PR #168 is merged (likely today), you'll be able to instantiate many DIDs to test interactions between different identities or provide a custom DWN instantiation that is using a different local path for the underlying DB to test interactions between DWNs. @cbruguera |
@frankhinek awesome on the merge getting resolved today. That will be very helpful. Looking forward to it. |
@frankhinek took a look at that PR. 401 files is crazy. 🤯 |
@frankhinek yes, when I say "local" DWN I mean a dwn-server I'm manually running on my computer (either with docker or npm run server), so it would actually be a "remote" for the Web5 SDK, not the node running in memory. My question was how to connect to this node as I understood the SDK was only connecting to the default DWN URL endpoints and there was no overriding of it, but maybe I'm missing something. I'm already making some related questions in the dwn channel on Discord. @frankhinek @andorsk thanks for replying! |
is there a reason:
https://github.com/TBD54566975/web5-js/blob/main/packages/web5/src/web5.ts#L72C1-L72C1 is private?
I'm trying to implement something similar to :
web5-js/packages/old/examples/simple-agent/src/utils.js
Line 20 in d8e2be7
but because the constructor is private I am unable to:
The context for this: I want to do some testing for interactions between two different DWNs in my test suite. If there's a better way to do this let me know!
The text was updated successfully, but these errors were encountered: