1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 01:51:23 +02:00

add websocket example

This commit is contained in:
Nikolay Kim
2017-10-20 17:16:17 -07:00
parent 1db4200621
commit 56c91adce2
13 changed files with 1120 additions and 85 deletions

View File

@ -21,7 +21,7 @@ impl Route for MyRoute {
// get Multipart stream
WrapStream::<MyRoute>::actstream(req.multipart(payload)?)
.and_then(|item, act, ctx| {
// Multipart stream is a string of Fields and nested Multiparts
// Multipart stream is a stream of Fields and nested Multiparts
match item {
multipart::MultipartItem::Field(field) => {
println!("==== FIELD ==== {:?}", field);