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

Is there any possibility of compiling the ss-local as a wasm and use it inside the browser to connect to an ss-server? #778

Closed
miniyarov opened this issue Feb 28, 2022 · 5 comments

Comments

@miniyarov
Copy link

I am working on a browser extension to connect to my remote server and wonder if I can use ss-local inside the browser instead of relying on socks5.

@zonyitoo
Copy link
Collaborator

zonyitoo commented Mar 1, 2022

Maybe. You could give a try.

@18o
Copy link
Contributor

18o commented Mar 1, 2022

I think it couldn't work inside browser because no TCP or UDP support in browser. Also you need consider if Tokio can work in browser as it's based on mio which using epoll/iocp/kqueue .

@miniyarov
Copy link
Author

There are some ways to use websockets as a TCP stream transport but still not much information on it I've found

@erikziyunchi
Copy link

Do you have any updates on this? Were you able to compile it into WASM?

@zonyitoo
Copy link
Collaborator

zonyitoo commented Jun 14, 2024

https://stackoverflow.com/questions/77402053/can-tokioruntime-be-used-in-wasm

Unfortunately, tokio couldn't run on WASM because we need tokio's "net" feature.

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

4 participants