1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-08-31 11:26:59 +02:00

Deploying to gh-pages from @ actix/actix-extras@39291c86b7 🚀

This commit is contained in:
robjtede
2024-03-02 21:47:06 +00:00
parent dcafc9254a
commit 843d4514e1
4 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>actix_web::{middleware::Logger, web, App, Error, HttpRequest, HttpResponse, HttpServer};
<span class="kw">use </span>actix_ws::Message;
<span class="kw">use </span>futures::stream::StreamExt <span class="kw">as _</span>;
<span class="kw">use </span>futures_util::StreamExt <span class="kw">as _</span>;
<span class="kw">async fn </span>ws(req: HttpRequest, body: web::Payload) -&gt; <span class="prelude-ty">Result</span>&lt;HttpResponse, Error&gt; {
<span class="kw">let </span>(response, <span class="kw-2">mut </span>session, <span class="kw-2">mut </span>msg_stream) = actix_ws::handle(<span class="kw-2">&amp;</span>req, body)<span class="question-mark">?</span>;