react-native-tor icon indicating copy to clipboard operation
react-native-tor copied to clipboard

DONE status is reported weirdly

Open Overtorment opened this issue 4 years ago • 1 comments

for some reason its not all caps, and is in quotes: image

other statuses are reported okay: image

image

Overtorment avatar Apr 19 '21 14:04 Overtorment

This is true.

Reason: STARTING and NOTINIT are actually sent by the module's "wrapper" (Swift or Kotlin) code while it awaits for the Tor daemon to be ready and bootstrapped. Once the daemon is bootstrapped the module will probe the Tor daemon (on it's control port) for it's actual network status which returns done most of the time. I had made the "wrapper" replies in capital to differentiate them.

It's in my road-map to actually expose the bootstrapping status (IE Bootstrapping messages you see in xcode logs for example instead of just STARTING) but I assumed sockets and hidden services have higher priority based on community feedback and this is good enough for now.

I'll keep the issue open as reference and close when implemented.

gabidi avatar Apr 21 '21 07:04 gabidi