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?

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