Mowje / node-ths

Node.js module to create tor hidden services and manage them programmatically
MIT License
36 stars 8 forks source link

Feature Request: Track progress of tor bootstrapping #7

Closed mattcollier closed 9 years ago

mattcollier commented 9 years ago

I have observed that tor bootstrapping can sometimes take 15-30 seconds (a long time). My app can't do anything until tor is ready.

I have also observed that tor give bootstrapping progress on the command line which is being monitored by ths.

Some mechanism for monitoring or notification regarding the bootstrapping would be great.

abenmrad commented 9 years ago

Alright. I've been adding events to the ths object. 3 events will be made available: bootstrap, bootstrapped and stop

Hasn't been documented yet, nor applied to ths_pool. You can see the work in the dev branch.

mattcollier commented 9 years ago

Just implemented the bootstrap emitter in my code. Works great!