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:
@@ -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) -> <span class="prelude-ty">Result</span><HttpResponse, Error> {
|
||||
<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">&</span>req, body)<span class="question-mark">?</span>;
|
||||
|
Reference in New Issue
Block a user