-
Notifications
You must be signed in to change notification settings - Fork 33
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
Websocket crate incompatible with version 2 #63
Comments
Oh yeah, we actually use @rousan would you be fine with sunsetting On a related note, I think we should bring |
I'm in favor of using the existing hyper ecosystem 👍
👍 For each project I've used Routerify for, parsing of the querystring from a request is always needed. I think it's a great idea to merge this into |
Okay, I will look into routerify-websocket. |
routerify-query could be added in routerify repo itself, I released it as separate repo to make core routerify lightweight as much as possible. We can merge it to core routerify and use feature flag to enable it. |
Hello @rousan @gsserge @seanpianka, are these two topics (one being moving routerify-query in the routerify repo and making it available via a feature flag, the other being deprecating routerify-websocket in favor of hyper-tungstenite) still on the agenda ? I am willing to help with these and create PRs. I had started working on porting routerify-websocket to version 2 here routerify/routerify-websocket#4, but seeing the discussion here about sunsetting the project I now understand why it did not raise much interest. I was thinking of updating the README/docs and maybe (it may not even be necessary, if hyper-tungstenite really is easy to work with) adding an example using hyper-tungstenite, so that users of routerify v2 are not mislead into using routerify-websocket anymore, what do you think ? |
Hey @ErwanDL, thanks for helping out with this! I personally do not have much time working on Speaking of query string parsing, again, my personal preference would be to leverage the |
Sounds good, I will update the docs to refer to hyper-tungstenite and create a PR then. Oh okay, I had not understood that the idea was to remove completely the query middleware and just put its functionality in |
Oh, this is just my idea! I do not think that there's a consensus around this issue yet. But it does make sense, I think, since the info is local to the request and adding those couple of methods basically wrapping the ones from |
But hyper_tungstenite works perfectly out of the box, since it works directly with a
hyper::Request<Body>
, the main example even uses the same function signature as routerify handlers.Would it be okay to change the README reference?
The text was updated successfully, but these errors were encountered: