Hello I am trying to use tokio-tungstenite to spin up a websocket server. On a request to the server from the client, I want to parse the query params from the request.
Currently I am using the accept_hdr_async function where I can access the request URI and get the query params. However, once the handshake is done, I can't see a way to get the request URI still.
Does anyone have insights on how to get around this? Looks like something along this (tokio_tungstenite::client_async - Rust) maybe handy but this is client-side unfortunately. Thanks!
I am not sure if I can do that though because the function expects a type that implements the Callback trait. The Callback trait has a on_request function which takes in the req and res