Skip to content
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

Progress messages #38

Open
xAffan opened this issue Apr 23, 2024 · 8 comments
Open

Progress messages #38

xAffan opened this issue Apr 23, 2024 · 8 comments

Comments

@xAffan
Copy link

xAffan commented Apr 23, 2024

Is there any way to display progress messages while tor is being started? At present, the user has no way of knowing if tor is actually making progress in being started or not. Any solution would be appreciated

@icota
Copy link
Collaborator

icota commented Apr 24, 2024

@xAffan looks like this is possible https://gitlab.torproject.org/tpo/core/arti/-/blob/main/crates/arti-client/src/client.rs#L159

My current thinking is to expose the events themselves on the Dart side (as a stream?) and have the users make what they want of it, eg. a progress bar

That work for you?

@xAffan
Copy link
Author

xAffan commented Apr 24, 2024

@xAffan looks like this is possible https://gitlab.torproject.org/tpo/core/arti/-/blob/main/crates/arti-client/src/client.rs#L159

My current thinking is to expose the events themselves on the Dart side (as a stream?) and have the users make what they want of it, eg. a progress bar

That work for you?

Yep works for me. I want to display a progress bar as well as log the messages so this would work perfectly

@nns52k
Copy link

nns52k commented May 8, 2024

@xAffan Are you able to access onion servers through this package now? I've tried your code example posted on LacticWhale/socks_dart#4 (comment) it does work but it looks like it uses an external Tor instead of libtor.so that this Tor package provides. When trying to access onion servers through this Tor package, I always get runtime error. Do you know how to access onion servers through this Tor package now?

@xAffan
Copy link
Author

xAffan commented May 8, 2024

@xAffan Are you able to access onion servers through this package now? I've tried your code example posted on LacticWhale/socks_dart#4 (comment) it does work but it looks like it uses an external Tor instead of libtor.so that this Tor package provides. When trying to access onion servers through this Tor package, I always get runtime error. Do you know how to access onion servers through this Tor package now?

I didn't test this tor package. I tested using an external tor proxy. If this package doesn't work, it's most likely that they have disabled .onion support? Not sure.

@nns52k
Copy link

nns52k commented May 8, 2024

@xAffan

I didn't test this tor package. I tested using an external tor proxy. If this package doesn't work, it's most likely that they have disabled .onion support? Not sure.

Thanks for the reply. In case you might want to know, utopic_tor_onion_proxy | Flutter package works but it only supports Android and no other platforms.

I have a self-hosted Supabase that provides onion service. Though finally found the right Flutter package to access it, the Realtime feature of the Supabase is malfunction, no auto-updates sent to clients. Do you happen to know how to configure the Tor proxy to support WebSocket protocol?

According to Copilot, the Realtime feature of Supabase is based on WebSocket, and it also said that Tor proxy supports WebSocket. However, when I tested the Realtime feature, it didn't work. No auto-updates happen if the connection goes through Tor proxy.

@xAffan
Copy link
Author

xAffan commented May 8, 2024

@xAffan

I didn't test this tor package. I tested using an external tor proxy. If this package doesn't work, it's most likely that they have disabled .onion support? Not sure.

Thanks for the reply. In case you might want to know, utopic_tor_onion_proxy | Flutter package works but it only supports Android and no other platforms.

I have a self-hosted Supabase that provides onion service. Though finally found the right Flutter package to access it, the Realtime feature of the Supabase is malfunction, no auto-updates sent to clients. Do you happen to know how to configure the Tor proxy to support WebSocket protocol?

According to Copilot, the Realtime feature of Supabase is based on WebSocket, and it also said that Tor proxy supports WebSocket. However, when I tested the Realtime feature, it didn't work. No auto-updates happen if the connection goes through Tor proxy.

Can you run this package and try something like python to access .onion to see if it works?

@nns52k
Copy link

nns52k commented May 8, 2024

@xAffan

Can you run this package and try something like python to access .onion to see if it works?

I'm not good at Python. sorry. I have only written some simple Python scripts, slightly more complicated than hello_world.

I've tried built a Flutter project to a GTK application, and the same bug appears. #42

@xAffan
Copy link
Author

xAffan commented Jul 23, 2024

@xAffan looks like this is possible https://gitlab.torproject.org/tpo/core/arti/-/blob/main/crates/arti-client/src/client.rs#L159

My current thinking is to expose the events themselves on the Dart side (as a stream?) and have the users make what they want of it, eg. a progress bar

That work for you?

Any updates?

FaFre added a commit to FaFre/tor that referenced this issue Feb 14, 2025
918f280 fix: build failure due to Android Studio dill files deletion (#81)
c6a3401 Use `flutter test` in CI (#80)
d56f1f2 chore: support build as a flutter module (#70)
969c49a fix insufficient sh permissions (#65)
97668e9 chore: fix typo in code (#63)
dd10277 fix: use alias for shasum if sha1sum is found instead (#60)
a5e2126 fix: building under nixos  (#58)
f756772 feat: print current dir when running pub get (Foundation-Devices#54)
b063595 fix: build mode when using a flutter flavor (Foundation-Devices#51)
c6d46d4 fix: add `/D` argument for cd to trigger drive change when changing directory (Foundation-Devices#53)
a3b7352 chore: add rustup tests (Foundation-Devices#47)
6ea1624 Filter non-custom toolchains (Foundation-Devices#43)
c2eaabd chore: fix variable name (Foundation-Devices#46)
229849d chore: get repo name from pull request (Foundation-Devices#45)
f130c69 chore: don't hardcode repository url (Foundation-Devices#44)
b5a5202 fix: run_build_tool.sh not passing through exit code (Foundation-Devices#38)
2b67021 feat: artifact provider should retry when reset by peer (Foundation-Devices#37)
523aa4a fix: typo in warning message (Foundation-Devices#36)
395ecbe fix: [windows] use bypass poweshell execution policy (Foundation-Devices#35)
632809a chore: specify hashes for CI actions (Foundation-Devices#34)
15bdc18 fix: symlink creation when building pods (Foundation-Devices#33)
7dbb078 feat: check for invalid snapshot version and recompile kernel (Foundation-Devices#32)

git-subtree-dir: cargokit
git-subtree-split: 918f28083f9ef24ce08b9e90d2c46e6a52812d5d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants