bump version again
fix badges
bump version
A companion to actix-proxy that handles websockets.
use actix_web::{Error, get, HttpRequest, HttpResponse, web};
#[get("/proxy/{port}")]
async fn proxy(
req: HttpRequest,
stream: web::Payload,
port: web::Path<u16>,
) -> Result<HttpResponse, Error> {
actix_ws_proxy::start(&req, format!("ws://127.0.0.1:{}", port), stream).await
}
Any errors will result in a disconnect on both sides with the error message as the reason.