Giter Club home page Giter Club logo

Comments (10)

FrancoAA avatar FrancoAA commented on May 11, 2024 1

I'm having the same issues with websocket connections when trying to run a code-server instance. The issue doesn't happen when issue ngrock or localtunnel alternatives.

from tunnelto.

samuelstroschein avatar samuelstroschein commented on May 11, 2024

Similar/same issue. I guess we are all using Hasura/GraphQL subscriptions over websockets? For unknown reasons, a websocket connection can not be established.

from tunnelto.

wnz99 avatar wnz99 commented on May 11, 2024

Yes, it's Hasura subscriptions.

from tunnelto.

mkjpryor avatar mkjpryor commented on May 11, 2024

I'm also seeing similar issues when trying to expose a Guacamole console (https://guacamole.apache.org/). This works using localtunnel, but I preferred this implementation as (a) it is in Rust and (b) it has the potential to scale out.

I assume tunnelto is meant to support websockets?

from tunnelto.

agrinman avatar agrinman commented on May 11, 2024

Hi -- we do support web sockets, though it seems like something is not working with hasura/guacamole. For example, this web socket example works just fine from my testing: https://github.com/gorilla/websocket/tree/master/examples/chat (note: adjust ws to wss in the html).

Can someone share a simple to replicate example?

from tunnelto.

agrinman avatar agrinman commented on May 11, 2024

Hi: I rewrote a bit of the local tcp forwarding logic which I think might solve some of these more complex cases.
Would someone be able to try a latest version to see if this fixes it for them?

cargo install tunnelto --force --version 0.1.19

(note 0.1.19 is not pushed to brew just yet)
Thanks!

edit: it's really easy to get cargo if you don't have it, https://rustup.rs

from tunnelto.

jcroucher avatar jcroucher commented on May 11, 2024

0.1.19 fixed my issue loading wss urls

from tunnelto.

jvalteren avatar jvalteren commented on May 11, 2024

Hi @agrinman, I too have issues with use of WebSockets and would like to try this 0.1.19 version. I'm using Homebrew on macOS. However, I can't find version 0.1.19 anywhere on GitHub or in Homebrew. Any pointers as to how I can get this version or fix the issue in another way?

from tunnelto.

CWSpear avatar CWSpear commented on May 11, 2024

@jvalteren was having this issue and found this page as a result.

I'm on a Mac and was also using the Homebrew version.

cargo install tunnelto --force --version 0.1.19

(I have rust installed via Homebrew)

You do need to either uninstall the Homebrew version or make sure you're using the full path to the v0.1.19 one, e.g.:

/Users/cwspear/.cargo/bin/tunnelto --port 8080

All that said, I get a different error when using 0.1.19:

CONNECTION REFUSED
 ERROR tunnelto        > failed to open local tunnel
 ERROR tunnelto        > got data but no stream to send it to.
 ERROR tunnelto::local > failed to connect to local service: Connection refused (os error 61)

It doesn't work at all, so it's worse off than 0.1.18 :(

from tunnelto.

jvalteren avatar jvalteren commented on May 11, 2024

Thanks @CWSpear.

@agrinman what is the status of the rewritten local TCP forwarding logic? Any chance of pushing this to Homebrew?

from tunnelto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.