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 a protocol spec anywhere? #3

Closed
anderspitman opened this issue Jan 25, 2024 · 4 comments
Closed

Is there a protocol spec anywhere? #3

anderspitman opened this issue Jan 25, 2024 · 4 comments

Comments

@anderspitman
Copy link

Interesting library. Also I noticed yamux in go.mod, but apparently it's only used in a test. A comparison to yamux would be very useful.

@anderspitman
Copy link
Author

I managed to find this, which I'm guessing is the best thing available: https://github.com/ngrok/ngrok-rust/blob/main/muxado/PROTOCOL.md

@anderspitman
Copy link
Author

For the second part of my question, this was useful: inconshreveable/muxado#13

@euank
Copy link
Contributor

euank commented Jan 30, 2024

Thanks for the question!
The simple answer is "no, there's not a public official spec anywhere".
Basically, your understanding above seems accurate to me.

The implementation in this repository is, I believe, the closest there is to a spec.
Per the open source license in this repo, you're welcome to use this code for whatever purpose.

That said, I believe ngrok's position is that only clients using the official Agent SDKs or ngrok agent are supported, and anyone speaking muxado directly to ngrok's servers should expect no support, and possibly to be broken unexpectedly.

Since it's not supported to speak this protocol directly, outside of the ngrok-maintained implementations of it, I don't particularly expect a more official spec or such.

@euank euank closed this as completed Jan 30, 2024
@anderspitman
Copy link
Author

Thanks @euank, that all makes sense. I'm actually working on my own protocol, so not a huge deal if ngrok breaks compatibility in the future. I'm mostly just using muxado to save some time since it seems like a reasonable approach to stream muxing, and has production-quality implementations.

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

2 participants