Hey team. I’m struggling to understand the recommended way to connect web front-ends to the conductor. I’m using hc sandbox generate
to test my hApp (from guidance in this short tutorial), but I’m not sure what library to use on the front-end to talk websockets to the conductor.
-
@holochain/conductor-api is only available from Node (because of its use of
Buffer
?) although, somehow builder seems to be using it but perhaps not from Vue? I haven’t spent time exploring this codebase yet. @philipbeadle, should I investigate further? Is this the way? -
@holochain/hc-web-client hasn’t been updated since September (before RSM?) Should this repo be archived or updated?
-
@uprtcl/holochain-provider, used by a number of @guillemcordoba’s projects in Holochain Open Dev, has been archived on GitHub and doesn’t look like it’s from the Holochain team.
-
Elemental Chat’s UI is using @holo-host/web-sdk, which looks like it’s under active development
I’ve only just started going down this path so I’m not yet sure if this is also appropriate during development or only Holo hosting.
Should I even be using hc sandbox generate
or is chaperone more appropriate? I’ve only just started to explore the Holo-Host org tonight, so if that was a dumb question, that’s why
Surprisingly, I’ve found that connecting the web front-end to the conductor has been the most ambiguous part of my Holochain learning journey so far. Naturally, I’d like to use the most future-proof approaches/libraries. And given that we’re only just on the other side of the RSM, it isn’t surprising that there isn’t clear guidance on some of this stuff; and it can be tricky to extract recommended approaches from existing code bases. Thus my reason for reaching out. I’d be super grateful for any guidance, tips or tricks. Thanks team!