Do not follow this link

~liz/actix-ws-proxy

clone

read-only
https://git.sr.ht/~liz/actix-ws-proxy
read/write
git@git.sr.ht:~liz/actix-ws-proxy

You can also use your local clone with git send-email.

builds.sr.ht status crates.io Documentation

#actix-ws-proxy

A companion to actix-proxy that handles websockets.

#Example

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.

Do not follow this link