1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

refactor http actor usage

This commit is contained in:
Nikolay Kim
2017-12-31 17:26:32 -08:00
parent 967d3244d7
commit cc38b30f7b
22 changed files with 197 additions and 254 deletions

View File

@ -13,8 +13,8 @@ use actix_web::*;
/// do websocket handshake and start `MyWebSocket` actor
fn ws_index(r: HttpRequest) -> Reply {
ws::start(r, MyWebSocket).into()
fn ws_index(r: HttpRequest) -> Result<HttpResponse, Error> {
ws::start(r, MyWebSocket)
}
/// websocket connection is long running connection, it easier