#asknostr does anyone have a link to the holesail android app source code? I want to see how they got hyperdht running on android

Reply to this note

Please Login to reply.

Discussion

Holesail android code is not open, but here is how you can get holesail working on Android:

https://github.com/supersuryaansh/hyperclip-android

After that just do npm i holesail-client and you can use the node package in app.js file

So this app is using bare-kit to run a bundled version of app.js with nodejs that has access to the network interface so it can make TCP connections?

I'm trying to figure out how the JavaScript (hypercore) part of of this app is able to use TCP sockets since most of the time JavaScript is sandboxed

Also curious whats the reasoning for keeping the Android holesail app closed source when all the other holesail packages and tools where open-source from day 1?

Bare is a runtime of its own and is not sandboxed like a normal JavaScript environment.

It can access TCP and setup sockets/connections and do all kinds of stuff.

Holesail Go was built way before bare-kit and uses custom stuff to set itself up and work.

But if you are taking Guy's bounty, Bare-kit is the way to go.